equal
deleted
inserted
replaced
23 */ |
23 */ |
24 |
24 |
25 #ifndef HEDGEWARS_HISTORYLINEEDIT |
25 #ifndef HEDGEWARS_HISTORYLINEEDIT |
26 #define HEDGEWARS_HISTORYLINEEDIT |
26 #define HEDGEWARS_HISTORYLINEEDIT |
27 |
27 |
|
28 #include <QStringList> |
|
29 #include <QString> |
|
30 |
28 #include <QLineEdit> |
31 #include <QLineEdit> |
29 #include <QString> |
|
30 |
32 |
31 #include <QKeyEvent> |
33 #include <QKeyEvent> |
32 |
34 |
33 #include <QMutex> |
35 #include <QMutex> |
34 |
36 |
52 * @brief Class constructor. |
54 * @brief Class constructor. |
53 * @param parent parent QWidget. |
55 * @param parent parent QWidget. |
54 * @param maxHistorySize maximum amount of history entries kept. |
56 * @param maxHistorySize maximum amount of history entries kept. |
55 */ |
57 */ |
56 HistoryLineEdit(QWidget * parent = 0, int maxHistorySize = 64); |
58 HistoryLineEdit(QWidget * parent = 0, int maxHistorySize = 64); |
|
59 |
|
60 /** |
|
61 * @brief Class destructor. |
|
62 */ |
|
63 ~HistoryLineEdit(); |
57 |
64 |
58 /** |
65 /** |
59 * @brief Appends current text to history (if not only whitespaces); |
66 * @brief Appends current text to history (if not only whitespaces); |
60 */ |
67 */ |
61 void rememberCurrentText(); |
68 void rememberCurrentText(); |