summaryrefslogtreecommitdiff
path: root/client/macrodrawer.cc
diff options
context:
space:
mode:
authordeva <deva>2011-03-10 08:45:16 +0000
committerdeva <deva>2011-03-10 08:45:16 +0000
commitded5e8cd771c9affef086b77e25c93b4868f3f29 (patch)
tree537bec9b557ca9bd2ba6e5429434fdc0250f1e8d /client/macrodrawer.cc
parentd8a34adcc1a69a2b77881a6e504d0f0ad896eb3a (diff)
Callback based client implementation is now finished. Testing is up.
Diffstat (limited to 'client/macrodrawer.cc')
-rw-r--r--client/macrodrawer.cc13
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.