author | llornkcor <llornkcor> | 2004-06-16 09:02:40 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-06-16 09:02:40 (UTC) |
commit | 334da0ef825f861792a12f9b51201ed81b491cec (patch) (side-by-side diff) | |
tree | 2dd1f04166444c26c0baf432622f0e8bd0f5fcde | |
parent | f1f53eba247de324eabf07d455e00cfd0f453375 (diff) | |
download | opie-334da0ef825f861792a12f9b51201ed81b491cec.zip opie-334da0ef825f861792a12f9b51201ed81b491cec.tar.gz opie-334da0ef825f861792a12f9b51201ed81b491cec.tar.bz2 |
fix warning
-rw-r--r-- | noncore/apps/opie-gutenbrowser/optionsDialogData.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/apps/opie-gutenbrowser/optionsDialogData.cpp b/noncore/apps/opie-gutenbrowser/optionsDialogData.cpp index e03fa2c..772926a 100644 --- a/noncore/apps/opie-gutenbrowser/optionsDialogData.cpp +++ b/noncore/apps/opie-gutenbrowser/optionsDialogData.cpp @@ -1,91 +1,91 @@ /*************************************************************************** optionsDialogData.cpp - description ------------------- begin : Tue Jul 25 2000 copyright : (C) 2000 -2004 by llornkcor email : ljp@llornkcor.com ***************************************************************************/ /*************************************************************************** * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * ***************************************************************************/ #include <qpixmap.h> #include "optionsDialog.h" #include "fontDialog.h" #include <qlabel.h> #include <qpushbutton.h> #include <qlineedit.h> #include <qcombobox.h> void optionsDialog::initDialog() { - QWidget *d = QApplication::desktop(); - int width = d->width(); - int height = d->height(); +// QWidget *d = QApplication::desktop(); +// int width = d->width(); +// int height = d->height(); QGridLayout *layout = new QGridLayout( this ); layout->setSpacing(2); layout->setMargin(2); tabWidget = new QTabWidget( this, "tabWidget" ); layout->addMultiCellWidget( tabWidget, 0, 0, 0, 3); Widget2 = new QWidget( tabWidget, "Widget2" ); QGridLayout *layout2 = new QGridLayout(Widget2 ); layout2->setSpacing(2); layout2->setMargin(2); // Http_CheckBox = new QCheckBox( Widget2, "Http_CheckBox" ); QLabel *downLabel= new QLabel(Widget2,"Label1"); downLabel->setText("Download Directory:"); downLabel->setMaximumHeight(30); downloadDirEdit = new QLineEdit(Widget2,"downloadDir"); // ComboBoxStyle = new QComboBox( FALSE, Widget2, "ComboBoxStyle" ); // ComboBoxStyle->insertItem( tr( "styleMetal") ); // ComboBoxStyle->insertItem( tr( "styleWindows") ); // ComboBoxStyle->insertItem( tr( "default style") ); cb_queryExit = new QCheckBox( Widget2, "cb_queryExit" ); cb_queryExit->setText("Query before exit."); useWordWrap_CheckBox = new QCheckBox( Widget2, "WordWrap_CheckBox" ); useWordWrap_CheckBox->setText("Use Word Wrap"); // Http_CheckBox->setText("Use pg index instead of ftp library index" ) ; Ftp_CheckBox = new QCheckBox( Widget2, "Ftp_CheckBox" ); Ftp_CheckBox->setText("Use FTP"); Ftp_CheckBox->hide(); layout2->addMultiCellWidget( downLabel, 0, 0, 0, 2); // downloadDirEdit->setMaximumWidth( 200); layout2->addMultiCellWidget( downloadDirEdit, 1, 1, 0, 0); // layout2->addMultiCellWidget( ComboBoxStyle, 3, 3, 0, 0); layout2->addMultiCellWidget( cb_queryExit, 2, 2, 0, 1); layout2->addMultiCellWidget( useWordWrap_CheckBox, 3, 3, 0, 1); QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); layout2->addItem( spacer, 4, 0 ); // downloadDirEdit->hide(); ////////////////////////////////////////////////////////// tabWidget->insertTab( Widget2, tr( "Main" ) ); Widget3 = new QWidget( tabWidget, "Widget3" ); QGridLayout *layout3 = new QGridLayout(Widget3 ); layout3->setSpacing(2); layout3->setMargin(4); TextLabel3 = new QLabel( Widget3, "TextLabel3" ); // TextLabel3->setProperty( "text", tr( "Current ftp server:/n" ) ); ftp_QListBox_1 = new QListBox( Widget3, "ftp_QListBox_1" ); ftp_DownloadButton = new QPushButton( Widget3, "ftp_DownloadButton" ); ////////////////////////////////////////////////////////// tabWidget->insertTab( Widget3, tr( "FTP" ) ); tab = new QWidget( tabWidget, "tab" ); |