From 4561849c395aaa6408e35124e03dabf5f0b7d842 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Wed, 28 Jun 2017 07:48:51 -0400 Subject: [PATCH] UI: add tooltip to Cancel / Quit button Change 'Quit' at the end to 'Done', because we're done -- and Quit is sometimes interpreted as cancelling. Tooltip for additional explanation. --- src/libcalamaresui/ViewManager.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/libcalamaresui/ViewManager.cpp b/src/libcalamaresui/ViewManager.cpp index 976377840..98476767c 100644 --- a/src/libcalamaresui/ViewManager.cpp +++ b/src/libcalamaresui/ViewManager.cpp @@ -52,8 +52,8 @@ ViewManager::instance( QObject* parent ) ViewManager::ViewManager( QObject* parent ) : QObject( parent ) - , m_widget( new QWidget() ) , m_currentStep( 0 ) + , m_widget( new QWidget() ) { Q_ASSERT( !s_instance ); @@ -72,6 +72,7 @@ ViewManager::ViewManager( QObject* parent ) m_back->setText( tr( "&Back" ) ); m_next->setText( tr( "&Next" ) ); m_quit->setText( tr( "&Cancel" ) ); + m_quit->setToolTip( tr( "Cancel installation without changing the system." ) ); ) QBoxLayout* bottomLayout = new QHBoxLayout; @@ -268,7 +269,8 @@ ViewManager::next() if ( m_currentStep == m_steps.count() -1 && m_steps.last()->isAtEnd() ) { - m_quit->setText( tr( "&Quit" ) ); + m_quit->setText( tr( "&Done" ) ); + m_quit->setToolTip( tr( "The installation is complete. Close the installer." ) ); } } @@ -299,7 +301,10 @@ ViewManager::back() if ( !( m_currentStep == m_steps.count() -1 && m_steps.last()->isAtEnd() ) ) + { m_quit->setText( tr( "&Cancel" ) ); + m_quit->setToolTip( tr( "Cancel installation without changing the system." ) ); + } } }