comparison main/MainWindow.cpp @ 739:1192963e2d83

Fix #1024 - avoid status bar repainting all its siblings when its message changes (and it resizes) by using a widget in the status bar for the label instead of the bar itself.
author Chris Cannam
date Wed, 02 Jul 2014 15:09:51 +0100
parents 48bd87b0a84e
children 61c0f32d93b3
comparison
equal deleted inserted replaced
738:5ebce191aa04 739:1192963e2d83
3932 } else { 3932 } else {
3933 m_myStatusMessage = tr("Visible: %1 to %2 (duration %3)") 3933 m_myStatusMessage = tr("Visible: %1 to %2 (duration %3)")
3934 .arg(startStr).arg(endStr).arg(durationStr); 3934 .arg(startStr).arg(endStr).arg(durationStr);
3935 } 3935 }
3936 3936
3937 if (statusBar()->currentMessage() != m_myStatusMessage) { 3937 if (getStatusLabel()->text() != m_myStatusMessage) {
3938 statusBar()->showMessage(m_myStatusMessage); 3938 getStatusLabel()->setText(m_myStatusMessage);
3939 } 3939 }
3940 3940
3941 updatePositionStatusDisplays(); 3941 updatePositionStatusDisplays();
3942 } 3942 }
3943 3943