diff options
author | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2014-01-17 20:14:07 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-20 13:10:57 +0100 |
commit | cf01d7136fb79ee3f8e8522748b08519f0ea528f (patch) | |
tree | ed4021fd66f4da1b164ca27e522da28525b473f7 /examples/assistant | |
parent | 2f2dd0137982e5894b93ca1770c096c19e3dc46c (diff) | |
download | qttools-cf01d7136fb79ee3f8e8522748b08519f0ea528f.tar.gz |
whitespace fixes
remove trailing spaces & expand tabs
Change-Id: If9909c94b52d9dacb7c8735470525d18a1c97d6b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
Diffstat (limited to 'examples/assistant')
13 files changed, 54 insertions, 54 deletions
diff --git a/examples/assistant/remotecontrol/remotecontrol.cpp b/examples/assistant/remotecontrol/remotecontrol.cpp index 772ea7540..1e7222c7f 100644 --- a/examples/assistant/remotecontrol/remotecontrol.cpp +++ b/examples/assistant/remotecontrol/remotecontrol.cpp @@ -112,7 +112,7 @@ void RemoteControl::on_launchButton_clicked() if (!ui.startUrlLineEdit->text().isEmpty()) sendCommand(QLatin1String("SetSource ") + ui.startUrlLineEdit->text()); - + ui.launchButton->setEnabled(false); ui.startUrlLineEdit->setEnabled(false); ui.actionGroupBox->setEnabled(true); diff --git a/examples/assistant/remotecontrol/remotecontrol.h b/examples/assistant/remotecontrol/remotecontrol.h index 4f40db201..b2ebc3abb 100644 --- a/examples/assistant/remotecontrol/remotecontrol.h +++ b/examples/assistant/remotecontrol/remotecontrol.h @@ -55,11 +55,11 @@ class RemoteControl : public QMainWindow public: RemoteControl(QWidget *parent = 0, Qt::WindowFlags flags = 0); ~RemoteControl(); - + private: Ui::RemoteControlClass ui; QProcess *process; - + private slots: void on_launchButton_clicked(); void on_actionQuit_triggered(); diff --git a/examples/assistant/simpletextviewer/assistant.cpp b/examples/assistant/simpletextviewer/assistant.cpp index c3740d647..163856015 100644 --- a/examples/assistant/simpletextviewer/assistant.cpp +++ b/examples/assistant/simpletextviewer/assistant.cpp @@ -71,7 +71,7 @@ void Assistant::showDocumentation(const QString &page) QByteArray ba("SetSource "); ba.append("qthelp://org.qt-project.examples.simpletextviewer/doc/"); - + proc->write(ba + page.toLocal8Bit() + '\n'); } //! [1] @@ -87,7 +87,7 @@ bool Assistant::startAssistant() #if !defined(Q_OS_MAC) app += QLatin1String("assistant"); #else - app += QLatin1String("Assistant.app/Contents/MacOS/Assistant"); + app += QLatin1String("Assistant.app/Contents/MacOS/Assistant"); #endif QStringList args; @@ -102,7 +102,7 @@ bool Assistant::startAssistant() QMessageBox::critical(0, QObject::tr("Simple Text Viewer"), QObject::tr("Unable to launch Qt Assistant (%1)").arg(app)); return false; - } + } } return true; } diff --git a/examples/assistant/simpletextviewer/assistant.h b/examples/assistant/simpletextviewer/assistant.h index eb9e0c228..8a24294a7 100644 --- a/examples/assistant/simpletextviewer/assistant.h +++ b/examples/assistant/simpletextviewer/assistant.h @@ -53,7 +53,7 @@ public: Assistant(); ~Assistant(); void showDocumentation(const QString &file); - + private: bool startAssistant(); QProcess *proc; diff --git a/examples/assistant/simpletextviewer/documentation/browse.html b/examples/assistant/simpletextviewer/documentation/browse.html index 987abf31f..47e09f56f 100644 --- a/examples/assistant/simpletextviewer/documentation/browse.html +++ b/examples/assistant/simpletextviewer/documentation/browse.html @@ -1,16 +1,16 @@ <html> <head> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> - <title>Browse</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <title>Browse</title> </head> <body style="font-size:12pt;font-family:helvetica"> - + <p><center><h2>Browse</h2></center></p> - + <p> The file dialog let you browse the current file system to specify the directory in which the file you want to open - resides. + resides. Note that only the specified directory will be searched, any subdirectories will simply be ignored. </p> diff --git a/examples/assistant/simpletextviewer/documentation/filedialog.html b/examples/assistant/simpletextviewer/documentation/filedialog.html index afa65ed57..6ebf40364 100644 --- a/examples/assistant/simpletextviewer/documentation/filedialog.html +++ b/examples/assistant/simpletextviewer/documentation/filedialog.html @@ -1,17 +1,17 @@ <html> <head> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> - <title>File Dialog</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <title>File Dialog</title> </head> <body style="font-size:12pt;font-family:helvetica"> - <p><center><h2>File Dialog</h2></center></p> + <p><center><h2>File Dialog</h2></center></p> <p> In the file dialog you can name a particular file name, or search for files using wildcard matching, i.e. specify a file name containing wildcards. In addition you must specify - the directory in which the file you search for resides. + the directory in which the file you search for resides. </p> <br /> @@ -39,7 +39,7 @@ <br /> <br /> <p> - See also: <a href="browse.html">Browse</a>, <a href="wildcardmatching.html">Wildcard Matching</a>, + See also: <a href="browse.html">Browse</a>, <a href="wildcardmatching.html">Wildcard Matching</a>, <a href="findfile.html">Find File</a> </p> </body> diff --git a/examples/assistant/simpletextviewer/documentation/findfile.html b/examples/assistant/simpletextviewer/documentation/findfile.html index 32e014718..dad66ab31 100644 --- a/examples/assistant/simpletextviewer/documentation/findfile.html +++ b/examples/assistant/simpletextviewer/documentation/findfile.html @@ -1,11 +1,11 @@ <html> <head> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> - <title>Find File</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <title>Find File</title> </head> <body style="font-size:12pt;font-family:helvetica"> - <p><center><h2>Find File</h2></center></p> + <p><center><h2>Find File</h2></center></p> <p> To open and view a file in the Simple Text Viewer, select the diff --git a/examples/assistant/simpletextviewer/documentation/index.html b/examples/assistant/simpletextviewer/documentation/index.html index 5a7b1d5fa..569ff531d 100644 --- a/examples/assistant/simpletextviewer/documentation/index.html +++ b/examples/assistant/simpletextviewer/documentation/index.html @@ -1,15 +1,15 @@ <html> <head> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> - <title>Manual</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <title>Manual</title> </head> <body style="font-size:12pt;font-family:helvetica"> - <p><center><h2>Simple Text Viewer</h2></center></p> + <p><center><h2>Simple Text Viewer</h2></center></p> - <p> + <p> The Simple Text Viewer enables the user to select and view - existing files. + existing files. </p> <p><center> @@ -25,15 +25,15 @@ the existing file system to find the relevant directory. </p> - <ul> - <li><a href="findfile.html">Find File</a></li> + <ul> + <li><a href="findfile.html">Find File</a></li> <ul> <li><a href="filedialog.html">File Dialog</a></li> <li><a href="wildcardmatching.html">WildCard Matching</a></li> <li><a href="browse.html">Browse</a></li> </ul> - <li><a href="openfile.html">Open File</a></li> - </ul> + <li><a href="openfile.html">Open File</a></li> + </ul> </body> </html> diff --git a/examples/assistant/simpletextviewer/documentation/intro.html b/examples/assistant/simpletextviewer/documentation/intro.html index 2e2aa40de..958619b9b 100644 --- a/examples/assistant/simpletextviewer/documentation/intro.html +++ b/examples/assistant/simpletextviewer/documentation/intro.html @@ -1,15 +1,15 @@ <html> <head> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> - <title>Manual</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <title>Manual</title> </head> <body style="font-size:12pt;font-family:helvetica"> - <p><center><h2>Simple Text Viewer</h2></center></p> + <p><center><h2>Simple Text Viewer</h2></center></p> - <p> + <p> The Simple Text Viewer enables the user to select and view - existing files. + existing files. </p> <p><center> diff --git a/examples/assistant/simpletextviewer/documentation/openfile.html b/examples/assistant/simpletextviewer/documentation/openfile.html index e172de95e..a68b1c18e 100644 --- a/examples/assistant/simpletextviewer/documentation/openfile.html +++ b/examples/assistant/simpletextviewer/documentation/openfile.html @@ -1,11 +1,11 @@ <html> <head> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> - <title>Open File</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <title>Open File</title> </head> <body style="font-size:12pt;font-family:helvetica"> - <p><center><h2>Open File</h2></center></p> + <p><center><h2>Open File</h2></center></p> <p> Once the file you want to view appears in the dialog's diff --git a/examples/assistant/simpletextviewer/documentation/wildcardmatching.html b/examples/assistant/simpletextviewer/documentation/wildcardmatching.html index eb1839a06..a6d8a74aa 100644 --- a/examples/assistant/simpletextviewer/documentation/wildcardmatching.html +++ b/examples/assistant/simpletextviewer/documentation/wildcardmatching.html @@ -1,16 +1,16 @@ <html> <head> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> - <title>Wildcard Matching</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <title>Wildcard Matching</title> </head> <body style="font-size:12pt;font-family:helvetica"> - <p><center><h2>Wildcard Matching</h2></center></p> + <p><center><h2>Wildcard Matching</h2></center></p> <p> Most command shells such as bash or cmd.exe support "file globbing", the ability to identify a group of files by using - wildcards. + wildcards. <br /> <br /> @@ -23,20 +23,20 @@ <br /> <br /> <p> - Wildcard matching provides four features: - </p> + Wildcard matching provides four features: + </p> - <ul> - <li>Any character represents itself apart from those - mentioned below. Thus 'c' matches the character 'c'. + <ul> + <li>Any character represents itself apart from those + mentioned below. Thus 'c' matches the character 'c'. </li> - <li>The '?' character matches any single character.</li> - <li>The '*' matches zero or more of any characters.</li> - <li>Sets of characters can be represented in square brackets. - Within the character class, like outside, backslash + <li>The '?' character matches any single character.</li> + <li>The '*' matches zero or more of any characters.</li> + <li>Sets of characters can be represented in square brackets. + Within the character class, like outside, backslash has no special meaning. - </li> - </ul> + </li> + </ul> <p> For example we could identify HTML files with diff --git a/examples/assistant/simpletextviewer/findfiledialog.cpp b/examples/assistant/simpletextviewer/findfiledialog.cpp index d07cd6232..a1c96607b 100644 --- a/examples/assistant/simpletextviewer/findfiledialog.cpp +++ b/examples/assistant/simpletextviewer/findfiledialog.cpp @@ -91,7 +91,7 @@ void FindFileDialog::browse() //! [2] void FindFileDialog::help() { - currentAssistant->showDocumentation("filedialog.html"); + currentAssistant->showDocumentation("filedialog.html"); } //! [2] diff --git a/examples/assistant/simpletextviewer/mainwindow.cpp b/examples/assistant/simpletextviewer/mainwindow.cpp index bc1700173..b23594012 100644 --- a/examples/assistant/simpletextviewer/mainwindow.cpp +++ b/examples/assistant/simpletextviewer/mainwindow.cpp @@ -87,7 +87,7 @@ void MainWindow::about() //! [3] void MainWindow::showDocumentation() { - assistant->showDocumentation("index.html"); + assistant->showDocumentation("index.html"); } //! [3] |