From ded5e8cd771c9affef086b77e25c93b4868f3f29 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 10 Mar 2011 08:45:16 +0000 Subject: Callback based client implementation is now finished. Testing is up. --- client/macrodrawer.cc | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'client/macrodrawer.cc') diff --git a/client/macrodrawer.cc b/client/macrodrawer.cc index f42a3b7..8c713b0 100644 --- a/client/macrodrawer.cc +++ b/client/macrodrawer.cc @@ -37,10 +37,9 @@ #include "macro.h" -MacroDrawer::MacroDrawer(Macro *macro, QString title, QWidget *edge) +MacroDrawer::MacroDrawer(Macro *macro, QString title) { button = NULL; - this->edge = edge; if(!macro->isstatic) setTitle(" " + title); setFlat(true); @@ -89,17 +88,7 @@ void MacroDrawer::toggleMe() void MacroDrawer::activationChange(bool active) { - //printf("Active %d\n", (int)active); setEnabled(active); - /* - if(active) { - QPalette palette = edge->palette(); - palette.setBrush(QPalette::Window, QBrush(QColor(150, 150, 255))); - edge->setPalette(palette); - } else { - edge->setPalette(QApplication::palette()); - } - */ if(!active) { // Set padlock icon on button. -- cgit v1.2.3