]> git.sesse.net Git - kdenlive/commitdiff
Eliminate two runtime warnings from the status bar.
authorRay Lehtiniemi <rayl@mail.com>
Sun, 5 Apr 2009 23:57:06 +0000 (23:57 +0000)
committerRay Lehtiniemi <rayl@mail.com>
Sun, 5 Apr 2009 23:57:06 +0000 (23:57 +0000)
Instead of explicitly specifying the position of various items,
just add them in order. This eliminates runtime warnings because
the explicitly specified positions were not contiguous.

Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
svn path=/trunk/kdenlive/; revision=3233

src/mainwindow.cpp

index 8f5fc1b9245cd1356ed10c91699d5c0cbb753250..51ccbdd5ae0ab16d712deb6b5098d2daeb499e10 100644 (file)
 
 static const char version[] = VERSION;
 
-static const int ID_STATUS_MSG = 1;
-static const int ID_EDITMODE_MSG = 2;
-static const int ID_TIMELINE_MSG = 3;
-static const int ID_TIMELINE_BUTTONS = 5;
-static const int ID_TIMELINE_POS = 6;
-static const int ID_TIMELINE_FORMAT = 7;
+static const int ID_TIMELINE_POS = 0;
 
 namespace Mlt
 {
@@ -762,9 +757,9 @@ void MainWindow::setupActions()
 
     statusBar()->addWidget(m_messageLabel, 10);
     statusBar()->addWidget(statusProgressBar, 0);
-    statusBar()->insertPermanentWidget(ID_TIMELINE_BUTTONS, w);
+    statusBar()->addPermanentWidget(w);
     statusBar()->insertPermanentFixedItem("00:00:00:00", ID_TIMELINE_POS);
-    statusBar()->insertPermanentWidget(ID_TIMELINE_FORMAT, m_timecodeFormat);
+    statusBar()->addPermanentWidget(m_timecodeFormat);
     statusBar()->setMaximumHeight(statusBar()->font().pointSize() * 4);
     m_messageLabel->hide();