summaryrefslogtreecommitdiffstats
path: root/src/palettecfg.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-07-24 09:59:06 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-07-24 09:59:06 -0500
commit24857cad8e92c27bc7d7377549ae887adbeccc58 (patch)
treee8aa2577506c17c68286ec1b65ae31b89ea0556b /src/palettecfg.cpp
parentea3a9effca9bebfe18bfb7546da619ecbbb121f3 (diff)
downloadksensors-24857cad8e92c27bc7d7377549ae887adbeccc58.tar.gz
ksensors-24857cad8e92c27bc7d7377549ae887adbeccc58.zip
Convert to TDE R14 API
Diffstat (limited to 'src/palettecfg.cpp')
-rw-r--r--src/palettecfg.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/palettecfg.cpp b/src/palettecfg.cpp
index 18e9d34..64fddd8 100644
--- a/src/palettecfg.cpp
+++ b/src/palettecfg.cpp
@@ -18,17 +18,17 @@
#include "palettecfg.h"
#include "lmsensorswidget.h"
-#include <qlabel.h>
-#include <qpalette.h>
-#include <qcombobox.h>
+#include <ntqlabel.h>
+#include <ntqpalette.h>
+#include <ntqcombobox.h>
#include <kcolorbutton.h>
-PaletteCfg::PaletteCfg(QWidget *parent, const char *name): PaletteCfgDesign(parent,name)
+PaletteCfg::PaletteCfg(TQWidget *parent, const char *name): PaletteCfgDesign(parent,name)
{
groupName= 0;
slotComboSelected(0);
connect( comboSelect,SIGNAL(activated(int)),this,SLOT(slotComboSelected(int)) );
- connect( buttonColor,SIGNAL(changed(const QColor &)),this,SLOT(slotColorChanged(const QColor &)) );
+ connect( buttonColor,SIGNAL(changed(const TQColor &)),this,SLOT(slotColorChanged(const TQColor &)) );
connect( buttonDefaultPalette, SIGNAL(clicked()),this,SLOT(slotPaletteDefault()) );
}
@@ -38,8 +38,8 @@ PaletteCfg::~PaletteCfg()
void PaletteCfg::slotComboSelected(int index)
{
- QColorGroup colors= framePanel->palette().active();
- QColor color;
+ TQColorGroup colors= framePanel->palette().active();
+ TQColor color;
switch(index) {
case 0: color= colors.background(); break;
case 1: color= colors.dark(); break;
@@ -51,15 +51,15 @@ void PaletteCfg::slotComboSelected(int index)
buttonColor->blockSignals(false);
}
-void PaletteCfg::slotColorChanged(const QColor &newColor)
+void PaletteCfg::slotColorChanged(const TQColor &newColor)
{
- QPalette pal= framePanel->palette();
+ TQPalette pal= framePanel->palette();
switch(comboSelect->currentItem()) {
- case 0: pal.setColor(QColorGroup::Background,newColor);
- pal.setColor(QColorGroup::Light ,newColor); break;
- case 1: pal.setColor(QColorGroup::Dark ,newColor); break;
- case 2: pal.setColor(QColorGroup::Text ,newColor); break;
- case 3: pal.setColor(QColorGroup::Foreground,newColor); break;
+ case 0: pal.setColor(TQColorGroup::Background,newColor);
+ pal.setColor(TQColorGroup::Light ,newColor); break;
+ case 1: pal.setColor(TQColorGroup::Dark ,newColor); break;
+ case 2: pal.setColor(TQColorGroup::Text ,newColor); break;
+ case 3: pal.setColor(TQColorGroup::Foreground,newColor); break;
default: return;
}
setPanelPalette(pal,false);
@@ -69,7 +69,7 @@ void PaletteCfg::slotColorChanged(const QColor &newColor)
void PaletteCfg::slotPaletteDefault()
{
palDefault= true;
- QPalette pal;
+ TQPalette pal;
if(groupName) {
LMSensorsWidget::cfgReadPalette(pal,"General",true);
} else {
@@ -78,7 +78,7 @@ void PaletteCfg::slotPaletteDefault()
setPanelPalette(pal,true);
}
-void PaletteCfg::setPanelPalette(const QPalette &pal, bool updateColorButton)
+void PaletteCfg::setPanelPalette(const TQPalette &pal, bool updateColorButton)
{
labelTitle->unsetPalette();
framePanel->setPalette(pal);
@@ -89,7 +89,7 @@ void PaletteCfg::setPanelPalette(const QPalette &pal, bool updateColorButton)
void PaletteCfg::readPalette(const char *name)
{
groupName= name;
- QPalette pal;
+ TQPalette pal;
palDefault= !LMSensorsWidget::cfgReadPalette(pal,name,false);
if(palDefault) LMSensorsWidget::cfgReadPalette(pal,"General",true);
setPanelPalette(pal,true);