* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
+#include <QScrollArea>
+#include <QGroupBox>
#include <QGridLayout>
#include <QTreeWidgetItem>
#include <QCheckBox>
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();