summaryrefslogtreecommitdiffstats
path: root/ksysguard
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-14 21:16:22 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-14 21:16:22 -0600
commit989d6a19014011bd6981abb3decb91a7b3af0971 (patch)
treed04e94ec18fd643e4ab53f6ca8ed1f4e8934e06e /ksysguard
parent77041d785dbbede734f8dc44aa454d07d14f0317 (diff)
downloadtdebase-989d6a19014011bd6981abb3decb91a7b3af0971.tar.gz
tdebase-989d6a19014011bd6981abb3decb91a7b3af0971.zip
Update various qt function definitions and static methods for tqt3
Diffstat (limited to 'ksysguard')
-rw-r--r--ksysguard/gui/SensorDisplayLib/ListView.cc4
-rw-r--r--ksysguard/gui/SensorDisplayLib/LogFile.cc4
-rw-r--r--ksysguard/gui/SensorDisplayLib/MultiMeter.cc4
-rw-r--r--ksysguard/gui/SensorDisplayLib/ProcessController.cc16
-rw-r--r--ksysguard/gui/SensorDisplayLib/SensorLogger.cc16
5 files changed, 22 insertions, 22 deletions
diff --git a/ksysguard/gui/SensorDisplayLib/ListView.cc b/ksysguard/gui/SensorDisplayLib/ListView.cc
index c980196e6..97b1a3c0f 100644
--- a/ksysguard/gui/SensorDisplayLib/ListView.cc
+++ b/ksysguard/gui/SensorDisplayLib/ListView.cc
@@ -207,7 +207,7 @@ ListView::ListView(TQWidget* parent, const char* name, const TQString& title, in
setBackgroundColor(KSGRD::Style->backgroundColor());
monitor = new PrivateListView( frame() );
- Q_CHECK_PTR(monitor);
+ TQ_CHECK_PTR(monitor);
monitor->setSelectionMode(TQListView::NoSelection);
monitor->setItemMargin(2);
@@ -328,7 +328,7 @@ void
ListView::configureSettings()
{
lvs = new ListViewSettings(this, "ListViewSettings");
- Q_CHECK_PTR(lvs);
+ TQ_CHECK_PTR(lvs);
connect(lvs, TQT_SIGNAL(applyClicked()), TQT_SLOT(applySettings()));
TQColorGroup colorGroup = monitor->colorGroup();
diff --git a/ksysguard/gui/SensorDisplayLib/LogFile.cc b/ksysguard/gui/SensorDisplayLib/LogFile.cc
index 7de7899ab..bb29af7a9 100644
--- a/ksysguard/gui/SensorDisplayLib/LogFile.cc
+++ b/ksysguard/gui/SensorDisplayLib/LogFile.cc
@@ -40,7 +40,7 @@ LogFile::LogFile(TQWidget *parent, const char *name, const TQString& title)
: KSGRD::SensorDisplay(parent, name, title)
{
monitor = new TQListBox(this);
- Q_CHECK_PTR(monitor);
+ TQ_CHECK_PTR(monitor);
setMinimumSize(50, 25);
@@ -82,7 +82,7 @@ void LogFile::configureSettings(void)
TQColorGroup cgroup = monitor->colorGroup();
lfs = new LogFileSettings(this);
- Q_CHECK_PTR(lfs);
+ TQ_CHECK_PTR(lfs);
lfs->fgColor->setColor(cgroup.text());
lfs->fgColor->setText(i18n("Foreground color:"));
diff --git a/ksysguard/gui/SensorDisplayLib/MultiMeter.cc b/ksysguard/gui/SensorDisplayLib/MultiMeter.cc
index 8a9cc9b60..111c4787b 100644
--- a/ksysguard/gui/SensorDisplayLib/MultiMeter.cc
+++ b/ksysguard/gui/SensorDisplayLib/MultiMeter.cc
@@ -50,7 +50,7 @@ MultiMeter::MultiMeter(TQWidget* parent, const char* name,
lcd = new TQLCDNumber(this, "meterLCD");
else
lcd = new TQLCDNumber(frame(), "meterLCD");
- Q_CHECK_PTR(lcd);
+ TQ_CHECK_PTR(lcd);
lcd->setSegmentStyle(TQLCDNumber::Filled);
setDigitColor(KSGRD::Style->backgroundColor());
lcd->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding,
@@ -191,7 +191,7 @@ void
MultiMeter::configureSettings()
{
mms = new MultiMeterSettings(this, "MultiMeterSettings");
- Q_CHECK_PTR(mms);
+ TQ_CHECK_PTR(mms);
mms->setTitle(title());
mms->setShowUnit(showUnit());
mms->setLowerLimitActive(lowerLimitActive);
diff --git a/ksysguard/gui/SensorDisplayLib/ProcessController.cc b/ksysguard/gui/SensorDisplayLib/ProcessController.cc
index f02b02af9..664870374 100644
--- a/ksysguard/gui/SensorDisplayLib/ProcessController.cc
+++ b/ksysguard/gui/SensorDisplayLib/ProcessController.cc
@@ -67,16 +67,16 @@ ProcessController::ProcessController(TQWidget* parent, const char* name, const T
// Setup the geometry management.
gm = new TQVBoxLayout(this, 10);
- Q_CHECK_PTR(gm);
+ TQ_CHECK_PTR(gm);
gm->addSpacing(15);
gmSearch = new TQHBoxLayout();
- Q_CHECK_PTR(gmSearch);
+ TQ_CHECK_PTR(gmSearch);
gm->addLayout(gmSearch, 0);
// Create the table that lists the processes.
pList = new ProcessList(this, "pList");
- Q_CHECK_PTR(pList);
+ TQ_CHECK_PTR(pList);
pList->setShowSortIndicator(true);
pListSearchLine = new KListViewSearchLineWidget(pList, this, "process_list_search_line");
gmSearch->addWidget(pListSearchLine, 1);
@@ -92,7 +92,7 @@ ProcessController::ProcessController(TQWidget* parent, const char* name, const T
* cbFilter must be created prior to constructing pList as the
* pList constructor sets cbFilter to its start value. */
cbFilter = new TQComboBox(this, "pList_cbFilter");
- Q_CHECK_PTR(cbFilter);
+ TQ_CHECK_PTR(cbFilter);
gmSearch->addWidget(cbFilter,0);
cbFilter->insertItem(i18n("All Processes"), 0);
cbFilter->insertItem(i18n("System Processes"), 1);
@@ -101,7 +101,7 @@ ProcessController::ProcessController(TQWidget* parent, const char* name, const T
cbFilter->setMinimumSize(cbFilter->sizeHint());
// Create the check box to switch between tree view and list view.
xbTreeView = new TQCheckBox(i18n("&Tree"), this, "xbTreeView");
- Q_CHECK_PTR(xbTreeView);
+ TQ_CHECK_PTR(xbTreeView);
xbTreeView->setMinimumSize(xbTreeView->sizeHint());
connect(xbTreeView, TQT_SIGNAL(toggled(bool)),
this, TQT_SLOT(setTreeView(bool)));
@@ -115,13 +115,13 @@ ProcessController::ProcessController(TQWidget* parent, const char* name, const T
// Create the 'Refresh' button.
bRefresh = new KPushButton( KGuiItem( i18n( "&Refresh" ), "reload" ),
this, "bRefresh" );
- Q_CHECK_PTR(bRefresh);
+ TQ_CHECK_PTR(bRefresh);
bRefresh->setMinimumSize(bRefresh->sizeHint());
connect(bRefresh, TQT_SIGNAL(clicked()), this, TQT_SLOT(updateList()));
// Create the 'Kill' button.
bKill = new KPushButton(i18n("&Kill"), this, "bKill");
- Q_CHECK_PTR(bKill);
+ TQ_CHECK_PTR(bKill);
bKill->setMinimumSize(bKill->sizeHint());
connect(bKill, TQT_SIGNAL(clicked()), this, TQT_SLOT(killProcess()));
/* Disable the kill button until we know that the daemon supports the
@@ -132,7 +132,7 @@ ProcessController::ProcessController(TQWidget* parent, const char* name, const T
gm->addWidget(pList, 1);
gm1 = new TQHBoxLayout();
- Q_CHECK_PTR(gm1);
+ TQ_CHECK_PTR(gm1);
gm->addLayout(gm1, 0);
gm1->addStretch();
gm1->addWidget(xbTreeView);
diff --git a/ksysguard/gui/SensorDisplayLib/SensorLogger.cc b/ksysguard/gui/SensorDisplayLib/SensorLogger.cc
index 939b66d6d..3d207aa2c 100644
--- a/ksysguard/gui/SensorDisplayLib/SensorLogger.cc
+++ b/ksysguard/gui/SensorDisplayLib/SensorLogger.cc
@@ -39,12 +39,12 @@ LogSensor::LogSensor(TQListView *parent)
: timerID( NONE ), lowerLimitActive( 0 ), upperLimitActive( 0 ),
lowerLimit( 0 ), upperLimit( 0 )
{
- Q_CHECK_PTR(parent);
+ TQ_CHECK_PTR(parent);
monitor = parent;
lvi = new SLListViewItem(monitor);
- Q_CHECK_PTR(lvi);
+ TQ_CHECK_PTR(lvi);
pixmap_running = UserIcon( "running" );
pixmap_waiting = UserIcon( "waiting" );
@@ -131,7 +131,7 @@ SensorLogger::SensorLogger(TQWidget *parent, const char *name, const TQString& t
: KSGRD::SensorDisplay(parent, name, title)
{
monitor = new TQListView(this, "monitor");
- Q_CHECK_PTR(monitor);
+ TQ_CHECK_PTR(monitor);
monitor->addColumn(i18n("Logging"));
monitor->addColumn(i18n("Timer Interval"));
@@ -169,12 +169,12 @@ SensorLogger::addSensor(const TQString& hostName, const TQString& sensorName, co
return (false);
sld = new SensorLoggerDlg(this, "SensorLoggerDlg");
- Q_CHECK_PTR(sld);
+ TQ_CHECK_PTR(sld);
if (sld->exec()) {
if (!sld->fileName().isEmpty()) {
LogSensor *sensor = new LogSensor(monitor);
- Q_CHECK_PTR(sensor);
+ TQ_CHECK_PTR(sensor);
sensor->setHostName(hostName);
sensor->setSensorName(sensorName);
@@ -201,7 +201,7 @@ bool
SensorLogger::editSensor(LogSensor* sensor)
{
sld = new SensorLoggerDlg(this, "SensorLoggerDlg");
- Q_CHECK_PTR(sld);
+ TQ_CHECK_PTR(sld);
sld->setFileName(sensor->getFileName());
sld->setTimerInterval(sensor->getTimerInterval());
@@ -235,7 +235,7 @@ SensorLogger::configureSettings()
TQColorGroup cgroup = monitor->colorGroup();
sls = new SensorLoggerSettings(this, "SensorLoggerSettings");
- Q_CHECK_PTR(sls);
+ TQ_CHECK_PTR(sls);
connect( sls, TQT_SIGNAL( applyClicked() ), TQT_SLOT( applySettings() ) );
@@ -295,7 +295,7 @@ SensorLogger::restoreSettings(TQDomElement& element)
for (uint i = 0; i < dnList.count(); i++) {
TQDomElement element = dnList.item(i).toElement();
LogSensor* sensor = new LogSensor(monitor);
- Q_CHECK_PTR(sensor);
+ TQ_CHECK_PTR(sensor);
sensor->setHostName(element.attribute("hostName"));
sensor->setSensorName(element.attribute("sensorName"));