Commit ac0ba98f authored by Antoni Bella Pérez's avatar Antoni Bella Pérez 🚵🏻
Browse files

Revert "Documentation updates"

This reverts commit 4161d6ac
parent cef6be11
Pipeline #88378 passed with stage
in 45 seconds
......@@ -577,7 +577,7 @@ void Board::changeDisplayedPlayer() {
PieceType Board::getPromotedType() {
PieceType piece = Queen;
QPointer<QDialog> dialog = new QDialog();
dialog->setWindowTitle(i18nc("@title:window", "Promotion"));
dialog->setWindowTitle(i18n("Promotion"));
QWidget *widget = new QWidget();
QVBoxLayout *layout = new QVBoxLayout();
QDialogButtonBox *bBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
......
......@@ -46,7 +46,7 @@ DifficultyDialog::DifficultyDialog(QWidget* parent, Qt::WindowFlags f) : QDialog
layout->addWidget(bBox);
setLayout(layout);
setWindowTitle(i18nc("@title:window", "Difficulty Level"));
setWindowTitle(i18n("Difficulty Level"));
connect(bBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
connect(bBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
......
......@@ -67,7 +67,7 @@ GameDialog::GameDialog(QWidget* parent, Qt::WindowFlags f) : QDialog(parent, f),
layout->addWidget(bBox);
setLayout(layout);
setWindowTitle(i18nc("@title:window", "New Game"));
setWindowTitle(i18n("New Game"));
connect(bBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
connect(bBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
......@@ -300,7 +300,7 @@ void GameDialog::networkStatusChanged(bool isOnline) {
void GameDialog::showEngineConfigDialog() {
QPointer<QDialog> dlg = new QDialog(this);
dlg->setWindowTitle(i18nc("@title:window", "Chess Engines"));
dlg->setWindowTitle(i18n("Chess Engines"));
auto bBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
connect( bBox, &QDialogButtonBox::accepted, dlg, &QDialog::accept );
......
......@@ -42,7 +42,7 @@
<item row="1" column="0">
<widget class="QRadioButton" name="rbPlayer1Engine">
<property name="text">
<string>&amp;Computer engine:</string>
<string>&amp;Computer engine</string>
</property>
</widget>
</item>
......@@ -172,7 +172,7 @@
<item row="2" column="0">
<widget class="QRadioButton" name="rbPlayer2Server">
<property name="text">
<string>Chess server:</string>
<string>Chess server</string>
</property>
</widget>
</item>
......@@ -204,14 +204,14 @@
<item row="0" column="0">
<widget class="QCheckBox" name="cbTimeControl">
<property name="text">
<string>&amp;Use time control</string>
<string>&amp;Use Time Control</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="lNumberOfMoves">
<property name="text">
<string>&amp;Time control period:</string>
<string>&amp;Time control period</string>
</property>
<property name="buddy">
<cstring>sbNumberOfMoves</cstring>
......@@ -240,7 +240,7 @@
<item row="2" column="0">
<widget class="QLabel" name="timeLimitLabel">
<property name="text">
<string>&amp;Initial time limit:</string>
<string>&amp;Initial time limit</string>
</property>
<property name="buddy">
<cstring>sbTimeLimit</cstring>
......@@ -266,7 +266,7 @@
<item row="3" column="0">
<widget class="QLabel" name="timeIncrementLabel">
<property name="text">
<string>I&amp;ncrement per move:</string>
<string>I&amp;ncrement per move</string>
</property>
<property name="buddy">
<cstring>sbTimeIncrement</cstring>
......
......@@ -169,7 +169,7 @@ void MainWindow::setupDocks() {
m_historyDock = new QDockWidget();
m_historyDock->setObjectName(QStringLiteral("HistoryDockWidget"));
m_historyDock->setFeatures(QDockWidget::DockWidgetMovable | QDockWidget::DockWidgetFloatable);
m_historyDock->setWindowTitle(i18nc("@title:window", "Move History"));
m_historyDock->setWindowTitle(i18n("Move History"));
m_historyDock->setWidget(new HistoryWidget);
addDockWidget(Qt::LeftDockWidgetArea, m_historyDock);
}
......@@ -522,7 +522,7 @@ void MainWindow::gameOver(Color winner) {
QVBoxLayout *mainLayout = new QVBoxLayout;
QWidget *mainWidget = new QWidget(this);
dlg->setLayout(mainLayout);
dlg->setWindowTitle (i18nc("@title:window", "Game over"));
dlg->setWindowTitle ( i18n("Game over") );
mainLayout->addWidget(mainWidget);
QDialogButtonBox *bBox = new QDialogButtonBox( QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::Apply );
......@@ -665,7 +665,7 @@ void MainWindow::fileSave() {
void MainWindow::fileSaveAs() {
KConfigGroup conf(KSharedConfig::openConfig(), "MainWindow");
QString dir = conf.readEntry("LastOpenDir", "");
QString fileName = QFileDialog::getSaveFileName(this, i18nc("@title:window", "Save As"), dir,
QString fileName = QFileDialog::getSaveFileName(this, i18n("Save As"), dir,
i18n("Portable game notation (*.pgn)"));
if (fileName.isEmpty())// "Cancel" was clicked
......
......@@ -52,7 +52,7 @@
<item row="1" column="0">
<widget class="QLabel" name="usernameLabel">
<property name="text">
<string>&amp;Username:</string>
<string>&amp;Username</string>
</property>
<property name="buddy">
<cstring>usernameLineEdit</cstring>
......@@ -79,7 +79,7 @@
<item row="2" column="0">
<widget class="QLabel" name="passwordLabel">
<property name="text">
<string>&amp;Password:</string>
<string>&amp;Password</string>
</property>
<property name="buddy">
<cstring>passwordLineEdit</cstring>
......
......@@ -204,7 +204,7 @@ void FicsProtocol::openGameDialog() {
return;
}
QDialog* dialog = new QDialog ( qApp->activeWindow() );
dialog->setWindowTitle(i18nc("@title:window", "Chess server"));
dialog->setWindowTitle(i18n("Chess server"));
auto mainLayout = new QVBoxLayout(dialog);
dialog->setLayout(mainLayout);
auto bBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment