summaryrefslogtreecommitdiff
path: root/client/macrodrawer.cc
diff options
context:
space:
mode:
authordeva <deva>2011-06-28 06:33:02 +0000
committerdeva <deva>2011-06-28 06:33:02 +0000
commita4b5fd34f5c3d98a438ae3519cd404c2aeeaf330 (patch)
tree714992d8217e0c2a5321734aaf4331e9dc525678 /client/macrodrawer.cc
parent540221455626e4d48fee76d8c6cb86e5d2607f4e (diff)
Hnadle 'important' attribute on macros.
Diffstat (limited to 'client/macrodrawer.cc')
-rw-r--r--client/macrodrawer.cc19
1 files changed, 15 insertions, 4 deletions
diff --git a/client/macrodrawer.cc b/client/macrodrawer.cc
index 8c713b0..570ce54 100644
--- a/client/macrodrawer.cc
+++ b/client/macrodrawer.cc
@@ -45,7 +45,17 @@ MacroDrawer::MacroDrawer(Macro *macro, QString title)
setFlat(true);
{
- QFont f = font(); f.setItalic(true);
+ QFont f = font();
+ f.setItalic(true);
+ if(macro->isimportant) {
+ f.setBold(true);
+ // f.setPointSize(f.pointSize() * 1.2);
+ /*
+ QPalette palette;
+ palette.setBrush(QPalette::Foreground, QBrush(QColor(157, 30, 141)));
+ setPalette(palette);
+ */
+ }
setFont(f);
}
@@ -64,9 +74,10 @@ MacroDrawer::MacroDrawer(Macro *macro, QString title)
connect(button, SIGNAL(clicked()), this, SLOT(toggleMe()));
}
- QMargins m = contentsMargins();
- m.setLeft(6);
- setContentsMargins(m);
+ int l,t,r,b;
+ getContentsMargins(&l,&t,&r,&b);
+ l = 6;
+ setContentsMargins(l, t, r, b);
}
bool MacroDrawer::eventFilter(QObject *obj, QEvent *event)