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/kate | |
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/kate')
-rw-r--r-- | kicker/menuext/kate/katesessionmenu.cpp | 24 | ||||
-rw-r--r-- | kicker/menuext/kate/katesessionmenu.h | 6 |
2 files changed, 15 insertions, 15 deletions
diff --git a/kicker/menuext/kate/katesessionmenu.cpp b/kicker/menuext/kate/katesessionmenu.cpp index 63cee8106..584a345aa 100644 --- a/kicker/menuext/kate/katesessionmenu.cpp +++ b/kicker/menuext/kate/katesessionmenu.cpp @@ -32,18 +32,18 @@ #include <ksimpleconfig.h> #include <kstandarddirs.h> -#include <qvalidator.h> +#include <tqvalidator.h> -class Validator : public QValidator { +class Validator : public TQValidator { public: - Validator( QObject *parent ) : QValidator( parent, 0 ) {} + Validator( TQObject *parent ) : TQValidator( parent, 0 ) {} ~Validator() {} - virtual QValidator::State validate( QString &, int & ) const { return QValidator::Acceptable; } + virtual TQValidator::State validate( TQString &, int & ) const { return TQValidator::Acceptable; } }; K_EXPORT_KICKER_MENUEXT(kate, KateSessionMenu) -KateSessionMenu::KateSessionMenu( QWidget *parent, const char *name, const QStringList& ) +KateSessionMenu::KateSessionMenu( TQWidget *parent, const char *name, const TQStringList& ) : KPanelMenu( parent, name ), m_parent( parent ) { @@ -76,8 +76,8 @@ void KateSessionMenu::initialize() insertSeparator(); - QStringList list = KGlobal::dirs()->findAllResources( "data", "kate/sessions/*.katesession", false, true); - for (QStringList::ConstIterator it = list.begin(); it != list.end(); ++it) + TQStringList list = KGlobal::dirs()->findAllResources( "data", "kate/sessions/*.katesession", false, true); + for (TQStringList::ConstIterator it = list.begin(); it != list.end(); ++it) { KSimpleConfig config( *it, true ); config.setGroup( "General" ); @@ -86,14 +86,14 @@ void KateSessionMenu::initialize() m_sessions.sort(); - for ( QStringList::ConstIterator it1 = m_sessions.begin(); it1 != m_sessions.end(); ++it1 ) + for ( TQStringList::ConstIterator it1 = m_sessions.begin(); it1 != m_sessions.end(); ++it1 ) { insertItem( *it1, id++ ); } // means for updating, to let the user manually update if he/she added new sessions. insertSeparator(); - insertItem( SmallIconSet("reload"), i18n("Reload Session List"), this, SLOT(reinitialize()) ); + insertItem( SmallIconSet("reload"), i18n("Reload Session List"), this, TQT_SLOT(reinitialize()) ); } void KateSessionMenu::slotExec( int id ) @@ -101,7 +101,7 @@ void KateSessionMenu::slotExec( int id ) if ( id < 0 ) return; - QStringList args; + TQStringList args; if ( id > 0 ) args << "--start"; @@ -109,9 +109,9 @@ void KateSessionMenu::slotExec( int id ) if ( id == 1 ) { bool ok (false); - QString name = KInputDialog::getText( i18n("Session Name"), + TQString name = KInputDialog::getText( i18n("Session Name"), i18n("Please enter a name for the new session"), - QString::null, + TQString::null, &ok, 0, 0, new Validator( m_parent ) ); if ( ! ok ) return; diff --git a/kicker/menuext/kate/katesessionmenu.h b/kicker/menuext/kate/katesessionmenu.h index ea78bf6ba..3d5519496 100644 --- a/kicker/menuext/kate/katesessionmenu.h +++ b/kicker/menuext/kate/katesessionmenu.h @@ -26,7 +26,7 @@ class KateSessionMenu : public KPanelMenu { Q_OBJECT public: - KateSessionMenu( QWidget *parent=0, const char *name=0, const QStringList& /*args*/=QStringList() ); + KateSessionMenu( TQWidget *parent=0, const char *name=0, const TQStringList& /*args*/=TQStringList() ); ~KateSessionMenu(); public slots: @@ -36,8 +36,8 @@ class KateSessionMenu : public KPanelMenu { virtual void slotExec( int id ); private: - QStringList m_sessions; - QWidget *m_parent; + TQStringList m_sessions; + TQWidget *m_parent; }; #endif // _KateSessionMenu_h_ |