summaryrefslogtreecommitdiffstats
path: root/kdecore/kshortcutmenu.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdecore/kshortcutmenu.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/kshortcutmenu.cpp')
-rw-r--r--kdecore/kshortcutmenu.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kdecore/kshortcutmenu.cpp b/kdecore/kshortcutmenu.cpp
index 5d7fea1f8..399096877 100644
--- a/kdecore/kshortcutmenu.cpp
+++ b/kdecore/kshortcutmenu.cpp
@@ -17,9 +17,9 @@
Boston, MA 02110-1301, USA.
*/
-#include <qkeysequence.h>
-#include <qlabel.h>
-#include <qpopupmenu.h>
+#include <tqkeysequence.h>
+#include <tqlabel.h>
+#include <tqpopupmenu.h>
#include "kaccelaction.h"
#include <kdebug.h>
@@ -27,19 +27,19 @@
#include "kshortcutmenu.h"
//#include <kkeynative.h>
-KShortcutMenu::KShortcutMenu( QWidget* pParent, KAccelActions* pActions, KKeySequence seq )
-: QPopupMenu( pParent ),
+KShortcutMenu::KShortcutMenu( TQWidget* pParent, KAccelActions* pActions, KKeySequence seq )
+: TQPopupMenu( pParent ),
m_pActions( pActions ),
m_seq( seq )
{
kdDebug() << seq.toStringInternal() << endl;
- QFont fontTitle = KGlobalSettings::menuFont();
+ TQFont fontTitle = KGlobalSettings::menuFont();
fontTitle.setBold( true );
- pTitle = new QLabel( "", (QWidget*)0 );
+ pTitle = new TQLabel( "", (TQWidget*)0 );
pTitle->setFont( fontTitle );
- pTitle->setFrameShape( QFrame::Panel );
+ pTitle->setFrameShape( TQFrame::Panel );
insertItem( pTitle );
}
@@ -67,9 +67,9 @@ void KShortcutMenu::updateShortcuts()
KAccelAction* pAction = m_pActions->actionPtr( iAction );
if( pAction ) {
KKeySequence seq = m_seqs[iItem];
- QString sSeq = seq.key(m_seq.count()).toString();
+ TQString sSeq = seq.key(m_seq.count()).toString();
for( uint iKey = m_seq.count() + 1; iKey < seq.count(); iKey++ )
- sSeq += QString(",") + seq.key(iKey).toString();
+ sSeq += TQString(",") + seq.key(iKey).toString();
kdDebug(125) << "seq = " << seq.toStringInternal() << " sSeq = " << sSeq << endl;
changeItem( iAction, pAction->label() + "\t" + sSeq );
@@ -78,7 +78,7 @@ void KShortcutMenu::updateShortcuts()
}
}
-void KShortcutMenu::keyPressEvent( QKeyEvent* pEvent )
+void KShortcutMenu::keyPressEvent( TQKeyEvent* pEvent )
{
kdDebug() << "keypress; " << pEvent->key() << endl;
KKey key( pEvent );
@@ -106,7 +106,7 @@ void KShortcutMenu::keyPressEvent( QKeyEvent* pEvent )
// And permit Enter, Return to select the item.
if( pEvent->key() == Qt::Key_Up || pEvent->key() == Qt::Key_Down ||
pEvent->key() == Qt::Key_Enter || pEvent->key() == Qt::Key_Return )
- QPopupMenu::keyPressEvent( pEvent );
+ TQPopupMenu::keyPressEvent( pEvent );
else
close();
}