Removed borders.
authorJari Jarvi <t7jaja00@students.oamk.fi>
Wed, 19 May 2010 14:07:46 +0000 (17:07 +0300)
committerJari Jarvi <t7jaja00@students.oamk.fi>
Wed, 19 May 2010 14:07:46 +0000 (17:07 +0300)
src/mainwidget.cpp

index e5203dc..7f909ea 100644 (file)
@@ -36,6 +36,7 @@ MainWidget::MainWidget (QWidget *parent)
                 QIcon(QString(iconNames[i])), 
                 QString(buttonTitles[i]), this);
         buttons[i] = button;
+        button->setPalette(QPalette(QColor(0, 0, 0, 192)));
         layout->addWidget(button, i%2, i/2);
     }
 
@@ -46,6 +47,8 @@ MainWidget::MainWidget (QWidget *parent)
     connect(buttons[4], SIGNAL(clicked(bool)), &irCtrl, SLOT(sendCmd4(bool)));
     connect(buttons[5], SIGNAL(clicked(bool)), &irCtrl, SLOT(sendCmd5(bool)));
 
+    this->setContentsMargins(0, 0, 0, 0);
+    layout->setContentsMargins(0, 0, 0, 0);
     this->setLayout(layout);
     this->setAttribute(Qt::WA_TranslucentBackground);
 }
@@ -55,7 +58,7 @@ MainWidget::MainWidget (QWidget *parent)
      QPainter p(this);
      p.setBrush(QColor(0, 0, 0, 128));
      p.setPen(Qt::NoPen);
-     p.drawRoundRect(rect(), 10, 20);
+     p.drawRoundRect(rect(), 0, 0);
      p.end();
  }