summaryrefslogtreecommitdiffstats
path: root/src/knutmainwindow.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-07 21:14:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-07 21:14:06 +0000
commit41f66dea058c2d1e2dc882c8264592443ac479a1 (patch)
tree38c723079b3d8b62a6300a1298dcf716f74f1bf1 /src/knutmainwindow.cpp
parent968af1d235ac30d737991b269156bee5dc99d318 (diff)
downloadknutclient-41f66dea058c2d1e2dc882c8264592443ac479a1.tar.gz
knutclient-41f66dea058c2d1e2dc882c8264592443ac479a1.zip
Rename incorrect instances of tqrepaint[...] to repaint[...]
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knutclient@1240369 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/knutmainwindow.cpp')
-rw-r--r--src/knutmainwindow.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/knutmainwindow.cpp b/src/knutmainwindow.cpp
index adeab69..0ab214f 100644
--- a/src/knutmainwindow.cpp
+++ b/src/knutmainwindow.cpp
@@ -182,10 +182,10 @@ void KNutMainWindow::setConfig (unsigned int changeSetting) {
//qDebug ("KNutMainWindow::setConfig");
KNutVarData::VarStrucDef analogMemberData;
- bool tqrepaintVoltagePanels = false;
- bool tqrepaintFrequencyPanels = false;
- bool tqrepaintAllPanels = false;
- bool tqrepaintOAPanels = false;
+ bool repaintVoltagePanels = false;
+ bool repaintFrequencyPanels = false;
+ bool repaintAllPanels = false;
+ bool repaintOAPanels = false;
// Main Setting
@@ -236,8 +236,8 @@ void KNutMainWindow::setConfig (unsigned int changeSetting) {
m_analogRecords->setFrequency(50);
}
m_analogRecords->setXfer(m_lowXfer,m_highXfer);
- tqrepaintVoltagePanels = true;
- tqrepaintFrequencyPanels = true;
+ repaintVoltagePanels = true;
+ repaintFrequencyPanels = true;
}
}
else {
@@ -246,12 +246,12 @@ void KNutMainWindow::setConfig (unsigned int changeSetting) {
if ((changeSetting & KNutPrefDlg::ChangeVoltage) || ((changeSetting & KNutPrefDlg::ChangeXFer))) {
// byla aktivovana zmena napeti nebo zmena xfer a zaroven ho ups podporuje
m_analogRecords->setVoltage(m_settingData->inputVoltage);
- tqrepaintVoltagePanels=true;
+ repaintVoltagePanels=true;
}
if ((changeSetting & KNutPrefDlg::ChangeFrequency) || ((changeSetting & KNutPrefDlg::ChangeXFer))) {
// byla aktivovana zmena napeti nebo zmena xfer a zaroven ho ups podporuje
m_analogRecords->setFrequency(m_settingData->inputFrequency);
- tqrepaintFrequencyPanels=true;
+ repaintFrequencyPanels=true;
}
}
}
@@ -267,12 +267,12 @@ void KNutMainWindow::setConfig (unsigned int changeSetting) {
if (m_settingData->customBAnalogColor) {
m_aPanelPalette.setColor(TQPalette::Active,TQColorGroup::Background,m_settingData->aPanelBackgroundColor);
m_aPanelPalette.setColor(TQPalette::Inactive,TQColorGroup::Background,m_settingData->aPanelBackgroundColor);
- tqrepaintAllPanels=true;
+ repaintAllPanels=true;
m_panelMeter->setAnalogBG(m_aPanelPalette);
}
else {
m_aPanelPalette = m_mainPalette;
- tqrepaintAllPanels=true;
+ repaintAllPanels=true;
m_panelMeter->setAnalogBG(m_aPanelPalette);
}
}
@@ -280,17 +280,17 @@ void KNutMainWindow::setConfig (unsigned int changeSetting) {
if ((changeSetting & KNutPrefDlg::ChangeCustomAPanelOColor) || // je provedena zmena barvy panelu
(changeSetting & KNutPrefDlg::ChangeAPOColor)) {
if (m_settingData->customOAnalogColor) {
- tqrepaintAllPanels=true;
- tqrepaintOAPanels=true;
+ repaintAllPanels=true;
+ repaintOAPanels=true;
}
else {
- tqrepaintAllPanels=true;
- tqrepaintOAPanels=true;
+ repaintAllPanels=true;
+ repaintOAPanels=true;
}
}
// regeneration of panel uses for setting Main and setting Analog
// pregenerovani panelu slozi pro setting Main a setting Analog
- m_panelMeter->tqrepaintAnalogPanels (tqrepaintFrequencyPanels, tqrepaintVoltagePanels, tqrepaintAllPanels);
+ m_panelMeter->repaintAnalogPanels (repaintFrequencyPanels, repaintVoltagePanels, repaintAllPanels);
if (m_activeUpsInfo->record.name != "") {
m_panelMeter->setSize();
@@ -451,14 +451,14 @@ void KNutMainWindow::showUpsData (void) {
//qDebug ("KNutMainWindow::showUpsData 1");
m_panelMeter->activateAnalogs(); // makes panel and makes background of panel
- tqrepaintAnalogs(false);
+ repaintAnalogs(false);
//qDebug ("KNutMainWindow::showUpsData 2");
m_panelMeter->setSize(true);
//qDebug ("KNutMainWindow::showUpsData 3");
m_mainSplit->refresh();
- // doesn't tqrepaint analog pointers, because pointers will be tqrepainted twice
+ // doesn't tqrepaint analog pointers, because pointers will be repainted twice
//qDebug ("KNutMainWindow::showUpsData 4");
-// tqrepaintAnalogs(false); // don't make this
+// repaintAnalogs(false); // don't make this
//qDebug ("KNutMainWindow::showUpsData 5");
}
else {
@@ -483,7 +483,7 @@ void KNutMainWindow::setCombo (TQString name) {
if (toolBar(0)->getCombo(1)->currentText() != name) toolBar(0)->getCombo(1)->setCurrentText(name);
}
-void KNutMainWindow::tqrepaintPanel (void) {
+void KNutMainWindow::repaintPanel (void) {
TQString nutStringVar;
if (m_activeUpsInfo->upsNet == 0) return;
@@ -501,8 +501,8 @@ void KNutMainWindow::tqrepaintPanel (void) {
/// je volan vzdy po timeoutu
/// this function is called after timeout always
-void KNutMainWindow::tqrepaintAnalogs ( bool run ) {
-//qDebug ("KNutMainWindow::tqrepaintAnalogs");
+void KNutMainWindow::repaintAnalogs ( bool run ) {
+//qDebug ("KNutMainWindow::repaintAnalogs");
TQString nutStringVar;
@@ -528,7 +528,7 @@ void KNutMainWindow::tqrepaintAnalogs ( bool run ) {
}
}
-//qDebug ("KNutMainWindow::tqrepaintAnalogs 1");
+//qDebug ("KNutMainWindow::repaintAnalogs 1");
for (int i=0; i< knc::NumberOfVars; i++) {
if (m_activeUpsInfo->record.upsVarCode[i] != 0) { // jistota pokud by nam to nekde propadlo
@@ -540,17 +540,17 @@ void KNutMainWindow::tqrepaintAnalogs ( bool run ) {
nutStringVar = m_activeUpsInfo->upsNet->readStringVar ((char *)nameUpsVars2[m_activeUpsInfo->record.upsVarCode[i]]);
break;
}
-//qDebug ("KNutMainWindow::tqrepaintAnalogs 2 ");
+//qDebug ("KNutMainWindow::repaintAnalogs 2 ");
if (nutStringVar.isEmpty()) numVar=0;
else numVar = nutStringVar.toFloat();
- m_panelMeter->tqrepaintScaleAnalogPanel (i, numVar);
- if (newRange) m_panelMeter->tqrepaintAnalogPanels (true, true, false); //freq volt
- m_panelMeter->tqrepaintAnalogPointer(i,numVar,run);
+ m_panelMeter->repaintScaleAnalogPanel (i, numVar);
+ if (newRange) m_panelMeter->repaintAnalogPanels (true, true, false); //freq volt
+ m_panelMeter->repaintAnalogPointer(i,numVar,run);
}
} // end for
-//qDebug ("KNutMainWindow::tqrepaintAnalogs 3 ");
+//qDebug ("KNutMainWindow::repaintAnalogs 3 ");
}