summaryrefslogtreecommitdiffstats
path: root/systemsettings/mainwindow.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-01 15:06:02 -0600
committerTimothy Pearson <[email protected]>2013-02-01 15:06:02 -0600
commit7f0e392c1178ae0c8a8673f115c69f8d72d9023a (patch)
tree5248e0339992e82b3de01174c9b86bf9d233c472 /systemsettings/mainwindow.cpp
parentdb3cbd38c674eae9a68ef1e1edf1508063b47a96 (diff)
downloadtde-systemsettings-7f0e392c1178ae0c8a8673f115c69f8d72d9023a.tar.gz
tde-systemsettings-7f0e392c1178ae0c8a8673f115c69f8d72d9023a.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'systemsettings/mainwindow.cpp')
-rw-r--r--systemsettings/mainwindow.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/systemsettings/mainwindow.cpp b/systemsettings/mainwindow.cpp
index 563aeb4..09e267b 100644
--- a/systemsettings/mainwindow.cpp
+++ b/systemsettings/mainwindow.cpp
@@ -53,7 +53,7 @@
MainWindow::MainWindow(bool embed, const TQString & menuFile,
TQWidget *parent, const char *name) :
- KMainWindow(parent,name), menu(NULL), embeddedWindows(embed),
+ TDEMainWindow(parent,name), menu(NULL), embeddedWindows(embed),
groupWidget(NULL), selectedPage(0), dummyAbout(NULL) {
// Load the menu structure in from disk.
@@ -105,21 +105,21 @@ void MainWindow::buildActions()
{
KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT( close() ), actionCollection());
- resetModule = new KAction(i18n("Undo Changes"), 0, TQT_TQOBJECT(this),
+ resetModule = new TDEAction(i18n("Undo Changes"), 0, TQT_TQOBJECT(this),
TQT_SLOT(showAllModules()), actionCollection(), "resetModule" );
resetModule->setEnabled(false);
- defaultModule = new KAction(i18n("Reset to Defaults"), 0, TQT_TQOBJECT(this),
+ defaultModule = new TDEAction(i18n("Reset to Defaults"), 0, TQT_TQOBJECT(this),
TQT_SLOT(showAllModules()), actionCollection(), "defaultModule" );
defaultModule->setEnabled(false);
if( embeddedWindows ) {
- showAllAction = new KAction(i18n("Overview"), TQApplication::reverseLayout() ? "forward" : "back", 0, TQT_TQOBJECT(this),
+ showAllAction = new TDEAction(i18n("Overview"), TQApplication::reverseLayout() ? "forward" : "back", 0, TQT_TQOBJECT(this),
TQT_SLOT(showAllModules()), actionCollection(), "showAll" );
showAllAction->setEnabled(false);
}
- aboutModuleAction = new KAction(i18n("About Current Module"), 0, TQT_TQOBJECT(this), TQT_SLOT(aboutCurrentModule()), actionCollection(), "help_about_module");
+ aboutModuleAction = new TDEAction(i18n("About Current Module"), 0, TQT_TQOBJECT(this), TQT_SLOT(aboutCurrentModule()), actionCollection(), "help_about_module");
resetModuleHelp();
// Search
@@ -154,7 +154,7 @@ void MainWindow::buildActions()
TQWhatsThis::add( search, i18n( "Search Bar<p>Enter a search term." ) );
// The Clear search box button.
- KToolBarButton *clearWidget = new KToolBarButton(TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase",
+ TDEToolBarButton *clearWidget = new TDEToolBarButton(TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase",
0, this);
searchClear = new KWidgetAction( clearWidget, TQString(""), CTRL+Key_L, TQT_TQOBJECT(search), TQT_SLOT(clear()),
actionCollection(), "searchReset");
@@ -174,7 +174,7 @@ void MainWindow::buildActions()
continue;
}
- KRadioAction *newAction = new KRadioAction( group->caption(), group->icon(), KShortcut(), TQT_TQOBJECT(this),
+ TDERadioAction *newAction = new TDERadioAction( group->caption(), group->icon(), TDEShortcut(), TQT_TQOBJECT(this),
TQT_SLOT(slotTopPage()), actionCollection(), group->relPath() );
pageActions.append(newAction);
kdDebug() << "relpath is :" << group->relPath() << endl;
@@ -219,7 +219,7 @@ void MainWindow::showAllModules()
searchClear->setEnabled(true);
searchAction->setEnabled(true);
- KRadioAction *currentRadioAction;
+ TDERadioAction *currentRadioAction;
for ( currentRadioAction = pageActions.first(); currentRadioAction; currentRadioAction = pageActions.next()) {
currentRadioAction->setEnabled(true);
}
@@ -273,7 +273,7 @@ void MainWindow::slotItemSelected( TQIconViewItem *item ){
searchClear->setEnabled(false);
searchAction->setEnabled(false);
- KRadioAction *currentRadioAction;
+ TDERadioAction *currentRadioAction;
for ( currentRadioAction = pageActions.first(); currentRadioAction; currentRadioAction = pageActions.next()) {
currentRadioAction->setEnabled(false);
}
@@ -333,10 +333,10 @@ void MainWindow::widgetChange() {
}
void MainWindow::slotTopPage() {
- KRadioAction *clickedRadioAction = (KRadioAction *)sender();
+ TDERadioAction *clickedRadioAction = (TDERadioAction *)sender();
selectedPage = pageActions.find(clickedRadioAction);
- KRadioAction *currentRadioAction;
+ TDERadioAction *currentRadioAction;
for ( currentRadioAction = pageActions.first(); currentRadioAction; currentRadioAction = pageActions.next()) {
currentRadioAction->setChecked(currentRadioAction==clickedRadioAction);
}