diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kicker/menuext/recentdocs | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker/menuext/recentdocs')
-rw-r--r-- | kicker/menuext/recentdocs/recentdocsmenu.cpp | 30 | ||||
-rw-r--r-- | kicker/menuext/recentdocs/recentdocsmenu.h | 10 |
2 files changed, 20 insertions, 20 deletions
diff --git a/kicker/menuext/recentdocs/recentdocsmenu.cpp b/kicker/menuext/recentdocs/recentdocsmenu.cpp index 06c84d7a6..b8c3c6d81 100644 --- a/kicker/menuext/recentdocs/recentdocsmenu.cpp +++ b/kicker/menuext/recentdocs/recentdocsmenu.cpp @@ -21,9 +21,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ******************************************************************/ -#include <qdragobject.h> -#include <qstring.h> -#include <qstringlist.h> +#include <tqdragobject.h> +#include <tqstring.h> +#include <tqstringlist.h> #include <kglobal.h> #include <kiconloader.h> @@ -39,8 +39,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. K_EXPORT_KICKER_MENUEXT(recentdocs, RecentDocsMenu) -RecentDocsMenu::RecentDocsMenu(QWidget *parent, const char *name, - const QStringList &/*args*/) +RecentDocsMenu::RecentDocsMenu(TQWidget *parent, const char *name, + const TQStringList &/*args*/) : KPanelMenu(KRecentDocument::recentDocumentDirectory(), parent, name) { } @@ -52,7 +52,7 @@ RecentDocsMenu::~RecentDocsMenu() void RecentDocsMenu::initialize() { if (initialized()) clear(); - insertItem(SmallIconSet("history_clear"), i18n("Clear History"), this, SLOT(slotClearHistory())); + insertItem(SmallIconSet("history_clear"), i18n("Clear History"), this, TQT_SLOT(slotClearHistory())); insertSeparator(); _fileList = KRecentDocument::recentDocuments(); @@ -65,24 +65,24 @@ void RecentDocsMenu::initialize() { int id = 0; char alreadyPresentInMenu; - QStringList previousEntries; - for (QStringList::ConstIterator it = _fileList.begin(); it != _fileList.end(); ++it) { + TQStringList previousEntries; + for (TQStringList::ConstIterator it = _fileList.begin(); it != _fileList.end(); ++it) { KDesktopFile f(*it, true /* read only */); // Make sure this entry is not already present in the menu alreadyPresentInMenu = 0; - for ( QStringList::Iterator previt = previousEntries.begin(); previt != previousEntries.end(); ++previt ) { - if (QString::localeAwareCompare(*previt, f.readName().replace('&', QString::fromAscii("&&") )) == 0) { + for ( TQStringList::Iterator previt = previousEntries.begin(); previt != previousEntries.end(); ++previt ) { + if (TQString::localeAwareCompare(*previt, f.readName().replace('&', TQString::fromAscii("&&") )) == 0) { alreadyPresentInMenu = 1; } } if (alreadyPresentInMenu == 0) { // Add item to menu - insertItem(SmallIconSet(f.readIcon()), f.readName().replace('&', QString::fromAscii("&&") ), id++); + insertItem(SmallIconSet(f.readIcon()), f.readName().replace('&', TQString::fromAscii("&&") ), id++); // Append to duplicate checking list - previousEntries.append(f.readName().replace('&', QString::fromAscii("&&") )); + previousEntries.append(f.readName().replace('&', TQString::fromAscii("&&") )); } } @@ -103,12 +103,12 @@ void RecentDocsMenu::slotExec(int id) { } } -void RecentDocsMenu::mousePressEvent(QMouseEvent* e) { +void RecentDocsMenu::mousePressEvent(TQMouseEvent* e) { _mouseDown = e->pos(); - QPopupMenu::mousePressEvent(e); + TQPopupMenu::mousePressEvent(e); } -void RecentDocsMenu::mouseMoveEvent(QMouseEvent* e) { +void RecentDocsMenu::mouseMoveEvent(TQMouseEvent* e) { KPanelMenu::mouseMoveEvent(e); if (!(e->state() & LeftButton)) diff --git a/kicker/menuext/recentdocs/recentdocsmenu.h b/kicker/menuext/recentdocs/recentdocsmenu.h index 1e3157495..d2e777570 100644 --- a/kicker/menuext/recentdocs/recentdocsmenu.h +++ b/kicker/menuext/recentdocs/recentdocsmenu.h @@ -34,7 +34,7 @@ class RecentDocsMenu : public KPanelMenu Q_OBJECT public: - RecentDocsMenu(QWidget* parent, const char* name, const QStringList &/*args*/); + RecentDocsMenu(TQWidget* parent, const char* name, const TQStringList &/*args*/); ~RecentDocsMenu(); void initialize(); @@ -44,12 +44,12 @@ protected slots: void slotAboutToShow(); protected: - void mousePressEvent(QMouseEvent* e); - void mouseMoveEvent(QMouseEvent* e); + void mousePressEvent(TQMouseEvent* e); + void mouseMoveEvent(TQMouseEvent* e); private: - QStringList _fileList; - QPoint _mouseDown; + TQStringList _fileList; + TQPoint _mouseDown; }; #endif // RECENTDOCSMENU_H |