diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-05 17:21:13 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-05 17:32:58 +0900 |
| commit | fc8b3dd4b23653e48c341769b28ade1f03b9d18b (patch) | |
| tree | 75436b899a33725f4f1bb99a22f820331007e152 /starter/menu.h | |
| parent | 66813efe63730c15cf2d53f3306f58765f0a57d2 (diff) | |
| download | tde-style-baghira-fc8b3dd4.tar.gz tde-style-baghira-fc8b3dd4.zip | |
Fix functionality broken by commit 66813ef
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'starter/menu.h')
| -rw-r--r-- | starter/menu.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/starter/menu.h b/starter/menu.h index eb11056..aecbc6a 100644 --- a/starter/menu.h +++ b/starter/menu.h @@ -6,6 +6,8 @@ #include "config.h" #endif +#include <vector> + #include <tqpoint.h> #include <tqwidget.h> #include <tqlabel.h> @@ -13,7 +15,6 @@ #include <tqscrollview.h> #include <tqmap.h> #include <tqpixmap.h> -#include <tqptrlist.h> #include <klineedit.h> #include <kservicegroup.h> #include "mykey.h" @@ -189,6 +190,7 @@ public: StartMenuEntry* addApp(KService * service, TQStringList & captions, TQString relPath); void finish(); StartMenuEntry* handledEntry; // for rightclick menu action + int currentEntryIdx; void writeEntry(TQString path, bool hidden = false); // for add/edit void reloadIcons(int size); public slots: @@ -226,7 +228,7 @@ private: TDEPopupMenu *m_popup; bool popupBlocked_; int _size; - typedef TQPtrList<StartMenuEntry> StartMenuEntryList; + typedef std::vector<StartMenuEntry*> StartMenuEntryList; typedef TQMap<TQString,StartMenuEntryList> KeyWordList; StartMenuEntryList entryList; KeyWordList m_keywordList; @@ -250,11 +252,14 @@ class SearchLine : public KLineEdit public: SearchLine( TQWidget * parent ); bool blocked; +protected: + void focusInEvent ( TQFocusEvent * ); protected slots: void makeCompletion (const TQString &); void block(){blocked = true;} signals: void typedTextChanged(const TQString & string); + void focusedIn(); }; class KURIFilterData; @@ -293,7 +298,7 @@ private slots: void execute(const TQString & command); void search(const TQString & string); void endHistory(); -// void slotLock(); + void searchLineFocused(); private: bool inMove; uint m_spokenText; |
