summaryrefslogtreecommitdiffstats
path: root/examples/widgets/richtext/syntaxhighlighter/mainwindow.cpp
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@digia.com>2012-11-23 13:36:40 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-24 23:07:54 +0100
commitd5ec06be6397b807b743aa46707ff45aa9dccafa (patch)
treeff53ede51fa0e3d90cb0619d7297be5e49025810 /examples/widgets/richtext/syntaxhighlighter/mainwindow.cpp
parentcf1e315e285b9a645231538bcbacf9e541c970c3 (diff)
QtBase: examples/widgets/richtext code style
Change-Id: Ie0c27464e0fdb8f26caf0d8f27043da4ec45f41f Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'examples/widgets/richtext/syntaxhighlighter/mainwindow.cpp')
-rw-r--r--examples/widgets/richtext/syntaxhighlighter/mainwindow.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/examples/widgets/richtext/syntaxhighlighter/mainwindow.cpp b/examples/widgets/richtext/syntaxhighlighter/mainwindow.cpp
index e8e5015f7b..6c30121e43 100644
--- a/examples/widgets/richtext/syntaxhighlighter/mainwindow.cpp
+++ b/examples/widgets/richtext/syntaxhighlighter/mainwindow.cpp
@@ -74,8 +74,7 @@ void MainWindow::openFile(const QString &path)
QString fileName = path;
if (fileName.isNull())
- fileName = QFileDialog::getOpenFileName(this,
- tr("Open File"), "", "C++ Files (*.cpp *.h)");
+ fileName = QFileDialog::getOpenFileName(this, tr("Open File"), "", "C++ Files (*.cpp *.h)");
if (!fileName.isEmpty()) {
QFile file(fileName);
@@ -108,14 +107,9 @@ void MainWindow::setupFileMenu()
QMenu *fileMenu = new QMenu(tr("&File"), this);
menuBar()->addMenu(fileMenu);
- fileMenu->addAction(tr("&New"), this, SLOT(newFile()),
- QKeySequence::New);
-
- fileMenu->addAction(tr("&Open..."), this, SLOT(openFile()),
- QKeySequence::Open);
-
- fileMenu->addAction(tr("E&xit"), qApp, SLOT(quit()),
- QKeySequence::Quit);
+ fileMenu->addAction(tr("&New"), this, SLOT(newFile()), QKeySequence::New);
+ fileMenu->addAction(tr("&Open..."), this, SLOT(openFile()), QKeySequence::Open);
+ fileMenu->addAction(tr("E&xit"), qApp, SLOT(quit()), QKeySequence::Quit);
}
void MainWindow::setupHelpMenu()