summaryrefslogtreecommitdiffstats
path: root/kkbswitch/kbconfigdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kkbswitch/kbconfigdlg.cpp')
-rw-r--r--kkbswitch/kbconfigdlg.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kkbswitch/kbconfigdlg.cpp b/kkbswitch/kbconfigdlg.cpp
index 3a5b74d..e299aea 100644
--- a/kkbswitch/kbconfigdlg.cpp
+++ b/kkbswitch/kbconfigdlg.cpp
@@ -31,18 +31,18 @@
#include <ntqpushbutton.h>
#include <ntqcombobox.h>
-#include <kdeversion.h>
-#include <klistbox.h>
-#include <klocale.h>
+#include <tdeversion.h>
+#include <tdelistbox.h>
+#include <tdelocale.h>
#include <kdebug.h>
-#if KDE_VERSION_MAJOR >= 3
- #include <kapplication.h>
+#if TDE_VERSION_MAJOR >= 3
+ #include <tdeapplication.h>
#else
#include <kapp.h>
#endif
-#include <klistview.h>
+#include <tdelistview.h>
#include <kkeydialog.h>
-#include <kconfig.h>
+#include <tdeconfig.h>
/* This little subclass of KKeyChooser reimplements sizeHint() to
look a little smaller in our config dialog. The default size
@@ -53,7 +53,7 @@ private:
TQSize m_size_hint;
void calcSizeHint();
public:
- SmallerKeyChooser(KGlobalAccel *accel, TQWidget *parent) :
+ SmallerKeyChooser(TDEGlobalAccel *accel, TQWidget *parent) :
KKeyChooser(accel, parent) { calcSizeHint(); }
virtual TQSize sizeHint() const { return m_size_hint; }
};
@@ -62,7 +62,7 @@ void SmallerKeyChooser::calcSizeHint()
{
m_size_hint = KKeyChooser::sizeHint();
- KListView *lv = NULL;
+ TDEListView *lv = NULL;
TQGroupBox *gb = NULL;
const TQObjectList *objects = children();
TQObjectListIt iter(*objects);
@@ -70,8 +70,8 @@ void SmallerKeyChooser::calcSizeHint()
while ( (obj = iter.current()) ) {
++iter;
- if (obj->inherits("KListView"))
- lv = dynamic_cast<KListView*>(obj);
+ if (obj->inherits("TDEListView"))
+ lv = dynamic_cast<TDEListView*>(obj);
else if (obj->inherits("TQGroupBox"))
gb = dynamic_cast<TQGroupBox*>(obj);
}
@@ -123,7 +123,7 @@ void KBConfigDlg::setupGeneralPage()
TQHBoxLayout *groupsLayout = new TQHBoxLayout(vlayout);
groupsLayout->setSpacing(2);
- lbGroups = new KListBox(page);
+ lbGroups = new TDEListBox(page);
TQObject::connect(lbGroups, SIGNAL(selectionChanged()), this, SLOT(slotLayoutSelected()));
TQObject::connect(lbGroups, SIGNAL(doubleClicked(TQListBoxItem *)), this,
SLOT(slotListBoxExecuted(TQListBoxItem *)));
@@ -231,7 +231,7 @@ void KBConfigDlg::setupShortcutsPage()
void KBConfigDlg::showConfig(){
int i;
KBGroup *group;
- KConfig *conf = kapp->config();
+ TDEConfig *conf = kapp->config();
m_iconpaths.clear();
conf->setGroup(ICONS_SECTION);
@@ -307,7 +307,7 @@ void KBConfigDlg::slotListBoxExecuted(TQListBoxItem *){
void KBConfigDlg::saveConfig(){
TQString path;
const TQPixmap *pix;
- KConfig *conf = kapp->config();
+ TDEConfig *conf = kapp->config();
conf->setGroup(ICONS_SECTION);
for (int i = 0; i < m_kbconf->groupCount(); i++) {
path = m_iconpaths[i];
@@ -368,7 +368,7 @@ void KBConfigDlg::redrawIcons(KBConfig::IconStyle icon_style)
void KBConfigDlg::slotCancel()
{
- KConfig *config = kapp->config();
+ TDEConfig *config = kapp->config();
config->rollback();
config->reparseConfiguration();
KDialogBase::slotCancel();
@@ -397,7 +397,7 @@ void KBConfigDlg::slotSetDefaultIcon()
*/
void KBConfigDlg::checkIconDefault(int index)
{
- KConfig *conf = kapp->config();
+ TDEConfig *conf = kapp->config();
if (index == -1 || ! iconTypeShowsFlag(KBConfig::IconStyle(cbxIconType->currentItem()))) {
btnSetDefaultIcon->setEnabled(false);
}