1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(ui): reorder the window title

This commit is contained in:
woxcab 2021-07-24 22:32:13 +03:00 committed by Anthony Bilinski
parent 26f021e8bd
commit d621d74511
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
3 changed files with 5 additions and 5 deletions

View File

@ -383,7 +383,7 @@ void ContentDialog::updateTitleAndStatusIcon()
return;
}
setWindowTitle(activeChatroomWidget->getTitle() + QStringLiteral(" - ") + username);
setWindowTitle(username + QStringLiteral(" - ") + activeChatroomWidget->getTitle());
bool isGroupchat = activeChatroomWidget->getGroup() != nullptr;
if (isGroupchat) {

View File

@ -224,7 +224,7 @@ void GUI::_setWindowTitle(const QString& title)
if (title.isEmpty())
w->setWindowTitle("qTox");
else
w->setWindowTitle("qTox - " + title);
w->setWindowTitle(title + " - qTox");
}
void GUI::_showInfo(const QString& title, const QString& msg)

View File

@ -829,8 +829,8 @@ void Widget::setWindowTitle(const QString& title)
} else {
QString tmp = title;
/// <[^>]*> Regexp to remove HTML tags, in case someone used them in title
QMainWindow::setWindowTitle(QApplication::applicationName() + QStringLiteral(" - ")
+ tmp.remove(QRegExp("<[^>]*>")));
QMainWindow::setWindowTitle(tmp.remove(QRegExp("<[^>]*>")) + QStringLiteral(" - ")
+ QApplication::applicationName());
}
}