|
|
|
@ -395,13 +395,13 @@ void StatPopup::setupActions() {
|
|
|
|
|
|
|
|
|
|
color[0] = defaultDockColor(0);
|
|
|
|
|
color[0] = config->readColorEntry("Color0", color);
|
|
|
|
|
actColor0 = new KAction(TQString(i18n("Color (%1)...")).tqarg(dockName(0)),
|
|
|
|
|
actColor0 = new KAction(TQString(i18n("Color (%1)...")).arg(dockName(0)),
|
|
|
|
|
"color0", 0, TQT_TQOBJECT(this), TQT_SLOT(selectColor0()), coll, "color0");
|
|
|
|
|
actColor0->setEnabled(false);
|
|
|
|
|
|
|
|
|
|
color[1] = defaultDockColor(1);
|
|
|
|
|
color[1] = config->readColorEntry("Color1", color + 1);
|
|
|
|
|
actColor1 = new KAction(TQString(i18n("Color (%1)...")).tqarg(dockName(1)),
|
|
|
|
|
actColor1 = new KAction(TQString(i18n("Color (%1)...")).arg(dockName(1)),
|
|
|
|
|
"color1", 0, TQT_TQOBJECT(this), TQT_SLOT(selectColor1()), coll, "color1");
|
|
|
|
|
actColor1->setEnabled(false);
|
|
|
|
|
|
|
|
|
@ -437,7 +437,7 @@ void StatPopup::mousePressEvent(TQMouseEvent* e) {
|
|
|
|
|
isDragged = true;
|
|
|
|
|
relX = e->x();
|
|
|
|
|
relY = e->y();
|
|
|
|
|
tqrepaint();
|
|
|
|
|
repaint();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -450,7 +450,7 @@ void StatPopup::mouseReleaseEvent(TQMouseEvent* e) {
|
|
|
|
|
// The end of a drag operation.
|
|
|
|
|
move(e->globalX() - relX, e->globalY() - relY);
|
|
|
|
|
isDragged = false;
|
|
|
|
|
tqrepaint();
|
|
|
|
|
repaint();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void StatPopup::closeEvent(TQCloseEvent* e) {
|
|
|
|
@ -492,7 +492,7 @@ void StatPopup::takeReading() {
|
|
|
|
|
if (resizeRequested)
|
|
|
|
|
resizeToText();
|
|
|
|
|
|
|
|
|
|
tqrepaint();
|
|
|
|
|
repaint();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -502,7 +502,7 @@ void StatPopup::resizeToText() {
|
|
|
|
|
TQSize size = fontMetrics().size(0, fullReading);
|
|
|
|
|
resize(size.width() + 2 * TEXT_EXPANSION_HORIZONTAL,
|
|
|
|
|
size.height() + 2 * TEXT_EXPANSION_VERTICAL);
|
|
|
|
|
tqrepaint();
|
|
|
|
|
repaint();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|