Making text in label always the same as button text. Not launching qussd when message...
[ussd-widget] / ussd4all / src / qussd.cpp
index 8c39434..2da8ebe 100644 (file)
@@ -34,14 +34,13 @@ class QUssd : public QMainWindow {
                        replyLabel->setMinimumWidth(400);
                        replyLabel->setMinimumHeight(200);
                        replyLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
-//                     replyLabel->setWordWrap(true);
-//                     replyLabel->setReadOnly(true);
                        replyLabel->setFrameStyle(QFrame::NoFrame);
                        QPalette pal = palette();
                        pal.setColor(QPalette::Base, Qt::transparent);
+                       pal.setColor(QPalette::Text, pal.color(QPalette::ButtonText));
                        replyLabel->setPalette(pal);
 //                     replyLabel->setTextBackgroundColor(Qt::black);
-                       replyLabel->setTextColor(Qt::white);
+//                     replyLabel->setTextColor(Qt::white);
                        replyLabel->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard);
                        
                        numberLabel = new QLabel("");