exthistorycombo.h (krename-4.0.9) | : | exthistorycombo.h (krename-4.90.90) | ||
---|---|---|---|---|
skipping to change at line 18 | skipping to change at line 18 | |||
/*************************************************************************** | /*************************************************************************** | |||
* * | * * | |||
* This program is free software; you can redistribute it and/or modify * | * This program is free software; you can redistribute it and/or modify * | |||
* it under the terms of the GNU General Public License as published by * | * it under the terms of the GNU General Public License as published by * | |||
* the Free Software Foundation; either version 2 of the License, or * | * the Free Software Foundation; either version 2 of the License, or * | |||
* (at your option) any later version. * | * (at your option) any later version. * | |||
* * | * * | |||
***************************************************************************/ | ***************************************************************************/ | |||
#ifndef EXT_HISTORY_COMBO_H_ | #ifndef EXT_HISTORY_COMBO_H | |||
#define EXT_HISTORY_COMBO_H_ | #define EXT_HISTORY_COMBO_H | |||
#include <khistorycombobox.h> | ||||
#include <QTimer> | #include <QTimer> | |||
#include <KHistoryComboBox> | ||||
/** A combobox with an item history, additional context | /** A combobox with an item history, additional context | |||
* menu entries for KRename tokens and a delayed text input | * menu entries for KRename tokens and a delayed text input | |||
* signal which is only emitted after the user has typed | * signal which is only emitted after the user has typed | |||
* sevaral characters. | * sevaral characters. | |||
*/ | */ | |||
class ExtHistoryCombo : public KHistoryComboBox { | class ExtHistoryCombo : public KHistoryComboBox | |||
Q_OBJECT | { | |||
Q_OBJECT | ||||
public: | public: | |||
/** | /** | |||
* Create a new ExtHistoryCombo object with a parent and a name. | * Create a new ExtHistoryCombo object with a parent and a name. | |||
* | * | |||
* @param parent Parent widget | * @param parent Parent widget | |||
*/ | */ | |||
ExtHistoryCombo( QWidget* parent ); | explicit ExtHistoryCombo(QWidget *parent); | |||
/// Fix compilation, designer needs this method | /// Fix compilation, designer needs this method | |||
inline void insertItems( int, QStringList & list ) { KHistoryComboBox::inser | inline void insertItems(int, QStringList &list) | |||
tItems( list ); } | { | |||
KHistoryComboBox::insertItems(list); | ||||
} | ||||
void loadConfig(); | void loadConfig(); | |||
void saveConfig(); | void saveConfig(); | |||
/** | /** | |||
* select the current contents of the combobox. | * select the current contents of the combobox. | |||
*/ | */ | |||
void selectAll(); | void selectAll(); | |||
signals: | Q_SIGNALS: | |||
void delayedTextChanged(); | void delayedTextChanged(); | |||
private slots: | private Q_SLOTS: | |||
void slotTextChanged(); | void slotTextChanged(); | |||
private: | private: | |||
QTimer m_timer; | QTimer m_timer; | |||
}; | }; | |||
#endif /* EXT_HISTORY_COMBO_H_ */ | #endif /* EXT_HISTORY_COMBO_H */ | |||
End of changes. 11 change blocks. | ||||
13 lines changed or deleted | 16 lines changed or added |