diff options
author | Janne Anttila <janne.anttila@digia.com> | 2009-08-04 10:34:57 (GMT) |
---|---|---|
committer | Janne Anttila <janne.anttila@digia.com> | 2009-08-04 10:43:47 (GMT) |
commit | 12b37100d5fff9a2309cd8e86cd90325b63cc485 (patch) | |
tree | 8adb0642bbe27c5e14b5670eb037317ab5a47fc1 /examples/network/ftp | |
parent | e6bb00250b321b149dd80259dc4f479088d5949b (diff) | |
download | Qt-12b37100d5fff9a2309cd8e86cd90325b63cc485.zip Qt-12b37100d5fff9a2309cd8e86cd90325b63cc485.tar.gz Qt-12b37100d5fff9a2309cd8e86cd90325b63cc485.tar.bz2 |
'Trailing whitespace' and 'blank line' fixes for demos and examples
Diffstat (limited to 'examples/network/ftp')
-rw-r--r-- | examples/network/ftp/ftpwindow.cpp | 18 | ||||
-rw-r--r-- | examples/network/ftp/main.cpp | 6 | ||||
-rw-r--r-- | examples/network/ftp/sym_iap_util.h | 2 |
3 files changed, 13 insertions, 13 deletions
diff --git a/examples/network/ftp/ftpwindow.cpp b/examples/network/ftp/ftpwindow.cpp index ffab8b4..b60da66 100644 --- a/examples/network/ftp/ftpwindow.cpp +++ b/examples/network/ftp/ftpwindow.cpp @@ -56,10 +56,10 @@ FtpWindow::FtpWindow(QWidget *parent) ftpServerLabel->setBuddy(ftpServerLineEdit); statusLabel = new QLabel(tr("Please enter the name of an FTP server.")); -#ifdef Q_OS_SYMBIAN - // Use word wrapping to fit the text on screen +#ifdef Q_OS_SYMBIAN + // Use word wrapping to fit the text on screen statusLabel->setWordWrap( true ); -#endif +#endif fileList = new QTreeWidget; fileList->setEnabled(false); @@ -69,7 +69,7 @@ FtpWindow::FtpWindow(QWidget *parent) connectButton = new QPushButton(tr("Connect")); connectButton->setDefault(true); - + cdToParentButton = new QPushButton; cdToParentButton->setIcon(QPixmap(":/images/cdtoparent.png")); cdToParentButton->setEnabled(false); @@ -105,15 +105,15 @@ FtpWindow::FtpWindow(QWidget *parent) // Make app better lookin on small screen QHBoxLayout *topLayout2 = new QHBoxLayout; topLayout2->addWidget(cdToParentButton); - topLayout2->addWidget(connectButton); + topLayout2->addWidget(connectButton); #endif - + QVBoxLayout *mainLayout = new QVBoxLayout; mainLayout->addLayout(topLayout); -#ifdef Q_OS_SYMBIAN +#ifdef Q_OS_SYMBIAN // Make app better lookin on small screen mainLayout->addLayout(topLayout2); -#endif +#endif mainLayout->addWidget(fileList); mainLayout->addWidget(statusLabel); mainLayout->addWidget(buttonBox); @@ -161,7 +161,7 @@ void FtpWindow::connectOrDisconnect() setCursor(Qt::WaitCursor); #endif -//![1] +//![1] ftp = new QFtp(this); connect(ftp, SIGNAL(commandFinished(int, bool)), this, SLOT(ftpCommandFinished(int, bool))); diff --git a/examples/network/ftp/main.cpp b/examples/network/ftp/main.cpp index f928bcb..978db0b 100644 --- a/examples/network/ftp/main.cpp +++ b/examples/network/ftp/main.cpp @@ -55,12 +55,12 @@ int main(int argc, char *argv[]) // in order that user can access the downloaded content QDir::setCurrent( "c:\\data" ); #endif - QApplication app(argc, argv); + QApplication app(argc, argv); FtpWindow ftpWin; -#ifdef Q_OS_SYMBIAN +#ifdef Q_OS_SYMBIAN // Make application better looking and more usable on small screen ftpWin.showMaximized(); -#else +#else ftpWin.show(); #endif return ftpWin.exec(); diff --git a/examples/network/ftp/sym_iap_util.h b/examples/network/ftp/sym_iap_util.h index 74fe93a..c399b35 100644 --- a/examples/network/ftp/sym_iap_util.h +++ b/examples/network/ftp/sym_iap_util.h @@ -293,7 +293,7 @@ static QString qt_RouteInfoL() { return output; } -QString qt_TDesC2QStringL(const TDesC& aDescriptor) +QString qt_TDesC2QStringL(const TDesC& aDescriptor) { #ifdef QT_NO_UNICODE return QString::fromLocal8Bit(aDescriptor.Ptr(), aDescriptor.Length()); |