OSSP CVS Repository

ossp - Difference in ossp-pkg/as/as-gui/as_slot.cpp versions 1.130 and 1.131
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/as/as-gui/as_slot.cpp 1.130 -> 1.131

--- as_slot.cpp  2003/02/21 10:11:36     1.130
+++ as_slot.cpp  2003/02/21 15:04:04     1.131
@@ -1179,8 +1179,18 @@
         break;
     }
 
-    // Set default colours
+    // Colour preferences
     int nRed, nGreen, nBlue;
+    QColorGroup Origcolour;
+    const QColor Origlight = QColor(TITRAQ_DEFLIGHTRED, TITRAQ_DEFLIGHTGREEN, TITRAQ_DEFLIGHTBLUE);
+    const QColor Origdark  = QColor(TITRAQ_DEFDARKRED, TITRAQ_DEFDARKGREEN, TITRAQ_DEFDARKBLUE);
+
+    // Set colours to revert to if user screws up and wants out
+    Origcolour.setColor(QColorGroup::Background, Origlight);
+    Origcolour.setColor(QColorGroup::Foreground, Origdark);
+    pUserpanel->setOrigcolour(&Origcolour);
+
+    // Set colour preferences saved from last session
     nRed   = m_pPrefs->getNumber(TITRAQ_PREFLIGHTRED, TITRAQ_DEFLIGHTRED);
     nGreen = m_pPrefs->getNumber(TITRAQ_PREFLIGHTGREEN, TITRAQ_DEFLIGHTGREEN);
     nBlue  = m_pPrefs->getNumber(TITRAQ_PREFLIGHTBLUE, TITRAQ_DEFLIGHTBLUE);

CVSTrac 2.0.1