diff options
Diffstat (limited to 'client/macrodrawer.cc')
-rw-r--r-- | client/macrodrawer.cc | 13 |
1 files changed, 1 insertions, 12 deletions
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. |