From 3438a93570bcb718d29b545624d7509bf95c36f4 Mon Sep 17 00:00:00 2001 From: Ray Lehtiniemi Date: Sun, 5 Apr 2009 23:57:06 +0000 Subject: [PATCH] Eliminate two runtime warnings from the status bar. 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 svn path=/trunk/kdenlive/; revision=3233 --- src/mainwindow.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 8f5fc1b9..51ccbdd5 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -88,12 +88,7 @@ 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(); -- 2.39.5