Add icon to “Send Feedback” button, do some TODO tasks in pagevideo.cpp
authorWuzzy <almikes@aol.com>
Wed, 23 Nov 2016 15:34:08 +0100
changeset 12041 3957a6653c10
parent 12040 44adf110f73b
child 12042 efa3b1837d63
Add icon to “Send Feedback” button, do some TODO tasks in pagevideo.cpp Thanks to oneill
QTfrontend/ui/page/pagevideos.cpp
QTfrontend/ui/widget/feedbackdialog.cpp
--- a/QTfrontend/ui/page/pagevideos.cpp	Wed Nov 23 15:08:51 2016 +0100
+++ b/QTfrontend/ui/page/pagevideos.cpp	Wed Nov 23 15:34:08 2016 +0100
@@ -110,11 +110,12 @@
     QGridLayout * pPageLayout = new QGridLayout();
     pPageLayout->setColumnStretch(0, 1);
     pPageLayout->setColumnStretch(1, 2);
+    QString pathIcon = ":/res/graphicsicon.png";
 
     // list of videos
     {
         IconedGroupBox* pTableGroup = new IconedGroupBox(this);
-        pTableGroup->setIcon(QIcon(":/res/graphicsicon.png")); // FIXME
+        pTableGroup->setIcon(QIcon(pathIcon));
         pTableGroup->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
         pTableGroup->setTitle(QGroupBox::tr("Videos"));
 
@@ -151,7 +152,7 @@
     // description
     {
         IconedGroupBox* pDescGroup = new IconedGroupBox(this);
-        pDescGroup->setIcon(QIcon(":/res/graphicsicon.png")); // FIXME
+        pDescGroup->setIcon(QIcon(pathIcon));
         pDescGroup->setTitle(QGroupBox::tr("Description"));
 
         QVBoxLayout* pDescLayout = new QVBoxLayout(pDescGroup);
--- a/QTfrontend/ui/widget/feedbackdialog.cpp	Wed Nov 23 15:08:51 2016 +0100
+++ b/QTfrontend/ui/widget/feedbackdialog.cpp	Wed Nov 23 15:34:08 2016 +0100
@@ -156,8 +156,9 @@
     captchaLayoutWidget->setLayout(captchaLayout);
     feedbackLayout->addWidget(captchaLayoutWidget, 3, 1, 1, 2);
 
-    // TODO: Set green arrow icon for send button (:/res/Start.png)
     BtnSend = new QPushButton(tr("Send Feedback"));
+    BtnSend->setStyleSheet("qproperty-icon: url(:/res/Start.png);");
+
     feedbackLayout->addWidget(BtnSend, 3, 3);
     BtnSend->setFixedHeight(40);
     connect(BtnSend, SIGNAL(clicked()), this, SLOT(SendFeedback()));