Further nice-ification of the runtime UI.

This commit is contained in:
Dave Page
2016-01-25 17:21:00 +00:00
parent f1f09242ed
commit 39e822e846
10 changed files with 20 additions and 16 deletions

View File

@@ -97,7 +97,7 @@ void TabWindow::enableDisableToolButton(const int &index)
toolBtnPtr = dynamic_cast<QToolButton*>(widgetPtr);
if (webviewPtr != NULL && toolBtnPtr != NULL)
{
if (!QString::compare(toolBtnPtr->text(), PGA_BTN_BACK, Qt::CaseInsensitive))
if (!QString::compare(toolBtnPtr->toolTip(), tr("Go back"), Qt::CaseInsensitive))
{
if (webviewPtr->page()->history()->canGoBack())
toolBtnPtr->setDisabled(false);
@@ -105,7 +105,7 @@ void TabWindow::enableDisableToolButton(const int &index)
toolBtnPtr->setDisabled(true);
}
if (!QString::compare(toolBtnPtr->text(), PGA_BTN_FORWARD, Qt::CaseInsensitive))
if (!QString::compare(toolBtnPtr->toolTip(), tr("Go forward"), Qt::CaseInsensitive))
{
if (webviewPtr->page()->history()->canGoForward())
toolBtnPtr->setDisabled(false);