summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/main.cpp
diff options
context:
space:
mode:
authorTheKoopaKingdom <thekoopakingdom@gmail.com>2017-04-13 07:10:19 +0200
committerTheKoopaKingdom <thekoopakingdom@gmail.com>2017-06-03 00:28:14 +0200
commitb6bab59000cbcdb34aed3f8633c5aae391db6dcb (patch)
tree62ee71c8b38011342574b0d68f2e75b5303643ea /src/citra_qt/main.cpp
parentMade some changes from review comments: (diff)
downloadyuzu-b6bab59000cbcdb34aed3f8633c5aae391db6dcb.tar
yuzu-b6bab59000cbcdb34aed3f8633c5aae391db6dcb.tar.gz
yuzu-b6bab59000cbcdb34aed3f8633c5aae391db6dcb.tar.bz2
yuzu-b6bab59000cbcdb34aed3f8633c5aae391db6dcb.tar.lz
yuzu-b6bab59000cbcdb34aed3f8633c5aae391db6dcb.tar.xz
yuzu-b6bab59000cbcdb34aed3f8633c5aae391db6dcb.tar.zst
yuzu-b6bab59000cbcdb34aed3f8633c5aae391db6dcb.zip
Diffstat (limited to 'src/citra_qt/main.cpp')
-rw-r--r--src/citra_qt/main.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp
index cc38cfc0e..6121d4728 100644
--- a/src/citra_qt/main.cpp
+++ b/src/citra_qt/main.cpp
@@ -93,6 +93,14 @@ void GMainWindow::InitializeWidgets() {
ui.horizontalLayout->addWidget(game_list);
// Create status bar
+ message_label = new QLabel();
+ // Configured separately for left alignment
+ message_label->setVisible(false);
+ message_label->setFrameStyle(QFrame::NoFrame);
+ message_label->setContentsMargins(4, 0, 4, 0);
+ message_label->setAlignment(Qt::AlignLeft);
+ statusBar()->addPermanentWidget(message_label, 1);
+
emu_speed_label = new QLabel();
emu_speed_label->setToolTip(tr("Current emulation speed. Values higher or lower than 100% "
"indicate emulation is running faster or slower than a 3DS."));
@@ -108,7 +116,7 @@ void GMainWindow::InitializeWidgets() {
label->setVisible(false);
label->setFrameStyle(QFrame::NoFrame);
label->setContentsMargins(4, 0, 4, 0);
- statusBar()->addPermanentWidget(label);
+ statusBar()->addPermanentWidget(label, 0);
}
statusBar()->setVisible(true);
setStyleSheet("QStatusBar::item{border: none;}");
@@ -437,6 +445,7 @@ void GMainWindow::ShutdownGame() {
// Disable status bar updates
status_bar_update_timer.stop();
+ message_label->setVisible(false);
emu_speed_label->setVisible(false);
game_fps_label->setVisible(false);
emu_frametime_label->setVisible(false);