[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: KAction and KAccel
From: Kurt Granroth <granroth () kde ! org>
Date: 1999-11-29 22:37:31
[Download RAW message or body]
Okay, thanks to Simon and David's help, I was able to figure out how
to make KAction and KAccel work together.
For the records (the list archives), here's the core stuff:
m_accelKeys->insertStdItem(KAccel::Open);
m_accelKeys->insertItem(i18n("Preferences"), "prefs",
Qt::ALT + Qt::Key_P);
m_openAct = new KAction(i18n("&Open..."), QIconSet(BarIcon("fileopen")),
KStdAccel::open(), this, SLOT(fileOpen()), this);
m_preferencesAct = new KAction(i18n("P&references..."),
m_accelKeys->currentKey("prefs"),
this, SLOT(optionsPreferences()), this);
--
Kurt Granroth | http://www.pobox.com/~kurt_granroth
KDE Developer/Evangelist | SuSE Labs Open Source Developer
granroth@kde.org | granroth@suse.com
KDE -- Putting a Friendly Face on Unix
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic