Revision
14325
Author
jmesquita
Date
2009-07-22 17:04:04 -0500 (Wed, 22 Jul 2009)

Log Message

*Bugfix: Remove compilation warnings
*Bugfix: Set the consoleText background correctly using QPalette

Modified Paths

Diff

Modified: freeswitch/trunk/contrib/jmesquita/fsgui/src/completers.cpp (14324 => 14325)


--- freeswitch/trunk/contrib/jmesquita/fsgui/src/completers.cpp	2009-07-22 21:46:39 UTC (rev 14324)
+++ freeswitch/trunk/contrib/jmesquita/fsgui/src/completers.cpp	2009-07-22 22:04:04 UTC (rev 14325)
@@ -73,7 +73,7 @@
      listModel = new QStringListModel(words, this);
      return listModel;
  }
-void cmdHistory::writeHistoryFile(const QString& fileName)
+void cmdHistory::writeHistoryFile(const QString& /*fileName*/)
 {
     /*QFile file(fileName);
     file.remove(fileName);

Modified: freeswitch/trunk/contrib/jmesquita/fsgui/src/consolepage.cpp (14324 => 14325)


--- freeswitch/trunk/contrib/jmesquita/fsgui/src/consolepage.cpp	2009-07-22 21:46:39 UTC (rev 14324)
+++ freeswitch/trunk/contrib/jmesquita/fsgui/src/consolepage.cpp	2009-07-22 22:04:04 UTC (rev 14325)
@@ -74,7 +74,9 @@
 void consolePage::setConsoleBackground()
 {
     QSettings settings(SETTINGS_ORGANIZATION, SETTINGS_APPLICATION);
-    m_ui->textConsole->setPalette(settings.value("consoleBackgroundColor",QColor(Qt::white)).value<QColor>());
+    QPalette p = palette();
+    p.setColor(QPalette::Active, QPalette::Base,settings.value("consoleBackgroundColor",QColor(Qt::white)).value<QColor>());
+    m_ui->textConsole->setPalette(p);
 }
 int consolePage::isConnected()
 {

Modified: freeswitch/trunk/contrib/jmesquita/fsgui/src/pastebindialog.cpp (14324 => 14325)


--- freeswitch/trunk/contrib/jmesquita/fsgui/src/pastebindialog.cpp	2009-07-22 21:46:39 UTC (rev 14324)
+++ freeswitch/trunk/contrib/jmesquita/fsgui/src/pastebindialog.cpp	2009-07-22 22:04:04 UTC (rev 14325)
@@ -84,7 +84,7 @@
 {
     text = consoleText;
 }
-void pastebinDialog::pastebinFinished(int req, bool isError)
+void pastebinDialog::pastebinFinished(int req, bool /*isError*/)
 {
     if (req == postId)
     {