summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-04-14 06:44:29 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-04-14 06:58:56 -0700
commitd8e11439ad27063b0dad05b2f8f0f4cd7f3e7de1 (patch)
tree22fae2f6ee0915afe9075ab6558882ded736ca1b /qt-ui/mainwindow.cpp
parentfc0e307f00ceb50771d1c7a1489c7b65721f4143 (diff)
downloadsubsurface-d8e11439ad27063b0dad05b2f8f0f4cd7f3e7de1.tar.gz
Undoing the last Qtr_ hack
The Qtr_ hack isn't needed as in commit 720fc15b2dcd ("Introduce QApplication") had already made sure that we are using gettext. I didn't revert the two commits as I wanted to keep the added header comments and fix the tooling in the Makefile as well. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index d1cde044a..577b7fb67 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -3,8 +3,6 @@
*
* classes for the main UI window in Subsurface
*/
-
-#include "common.h"
#include "mainwindow.h"
#include "ui_mainwindow.h"
@@ -60,7 +58,7 @@ void MainWindow::on_actionNew_triggered()
void MainWindow::on_actionOpen_triggered()
{
- QString filename = QFileDialog::getOpenFileName(this, Qtr_("Open File"), QDir::homePath(), filter());
+ QString filename = QFileDialog::getOpenFileName(this, tr("Open File"), QDir::homePath(), filter());
if (filename.isEmpty()){
return;
}
@@ -290,10 +288,10 @@ QString MainWindow::filter()
bool MainWindow::askSaveChanges()
{
- QString message = ! existing_filename ? Qtr_("You have unsaved changes\nWould you like to save those before closing the datafile?")
- : Qtr_("You have unsaved changes to file: %1 \nWould you like to save those before closing the datafile?").arg(existing_filename);
+ QString message = ! existing_filename ? tr("You have unsaved changes\nWould you like to save those before closing the datafile?")
+ : tr("You have unsaved changes to file: %1 \nWould you like to save those before closing the datafile?").arg(existing_filename);
- if (QMessageBox::question(this, Qtr_("Save Changes?"), message) == QMessageBox::Ok){
+ if (QMessageBox::question(this, tr("Save Changes?"), message) == QMessageBox::Ok){
// WARNING: Port.
// file_save(NULL,NULL);
return true;