X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fclient%2FColumnSelectorDialog.cpp;h=4e26acdb87fa2cd75b7b82b38b6814a489321411;hb=824b98b09faa5fb868f455fd20496c22620064f3;hp=153199a8ec58b4e2c27e68f61b130cf0e74596e7;hpb=8ab7be77524b50a38852b0623c47d00b01253bdb;p=qtrapids diff --git a/src/client/ColumnSelectorDialog.cpp b/src/client/ColumnSelectorDialog.cpp index 153199a..4e26acd 100644 --- a/src/client/ColumnSelectorDialog.cpp +++ b/src/client/ColumnSelectorDialog.cpp @@ -18,6 +18,8 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ +#include +#include #include #include #include @@ -34,13 +36,26 @@ ColumnSelectorDialog::ColumnSelectorDialog(QTreeWidget *treewidget, QWidget* par treeWidget_(treewidget), checkBoxes_() { + QScrollArea *scrollArea = new QScrollArea(this); + scrollArea->setWidgetResizable(true); + //scrollArea->setProperty("FingerScrollable", false); QBoxLayout *verticalBox = new QBoxLayout(QBoxLayout::TopToBottom); grid_ = new QGridLayout; QCheckBox *cbox = NULL; - setLayout(verticalBox); - verticalBox->addLayout(grid_); +/// @TODO Kineticscrolling (Fingerscrollable does not work in Qt 4.6, only in 4.5) +#ifdef Q_WS_HILDON + //Specific hildon/Maemo5 code here +#endif + // Create scrollable checkbox dialog to allow proper viewing on Maemo: + verticalBox->addWidget(scrollArea); + // A "temporary" widget for containing QScrollArea stuff + QWidget* scrollAreaWidgetContents = new QWidget(); + scrollAreaWidgetContents->setLayout(grid_); + scrollArea->setWidget(scrollAreaWidgetContents); + setLayout(verticalBox); + if (treeWidget_ != NULL) { QTreeWidgetItem *item = treeWidget_->headerItem();