OSSP CVS Repository

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

ossp-pkg/as/as-gui/as_gui.cpp 1.28 -> 1.29

--- as_gui.cpp   2002/12/12 13:35:45     1.28
+++ as_gui.cpp   2002/12/12 20:52:13     1.29
@@ -45,16 +45,6 @@
     this->setDirty(false);
     m_szFilename = new QString();
 
-    // Initial widget manipulations
-    if (!kszName)
-        setName(trUtf8("Titraqform"));
-    resize(TITRAQ_MAINWINWIDTH, TITRAQ_MAINWINHEIGHT);
-    setCaption("OSSP Titraq");
-
-//    // Lock down window size
-//    setSizePolicy(QSizePolicy((QSizePolicy::SizeType)0,
-//        (QSizePolicy::SizeType)0, 0, 0, sizePolicy().hasHeightForWidth()));
-
     try {
         setupPrefs();           // Load general preferences
         setupActions();         // Create and initialize actions
@@ -71,6 +61,17 @@
         exit(1);
     }
 
+    // Initial widget manipulations
+    if (!kszName)
+        setName(trUtf8("Titraqform"));
+    resize(m_pPrefs->getNumber(TITRAQ_PREFFRAMEWIDTH, TITRAQ_DEFFRAMEWIDTH),
+        m_pPrefs->getNumber(TITRAQ_PREFFRAMEHEIGHT, TITRAQ_DEFFRAMEHEIGHT));
+    setCaption("OSSP Titraq");
+
+//    // Lock down window size
+//    setSizePolicy(QSizePolicy((QSizePolicy::SizeType)0,
+//        (QSizePolicy::SizeType)0, 0, 0, sizePolicy().hasHeightForWidth()));
+
     m_pStatbar->message(trUtf8("Ready"));   // Signal a ready condition
 }
 

CVSTrac 2.0.1