+ QVBoxLayout *mainLayout = new QVBoxLayout;
+#ifdef Q_WS_MAEMO_5
+ QString ori = settings.value("orientation", "Automatic").toString();
+ orient = new QComboBox();
+ orient->addItem(tr ("Automatic"));
+ orient->addItem(tr ("Landscape"));
+ orient->addItem(tr ("Portrait"));
+ if (ori == "Landscape")
+ orient->setCurrentIndex(1);
+ if (ori == "Portrait")
+ orient->setCurrentIndex(2);
+ QLabel *label = new QLabel (tr ("Orientation"));
+ QHBoxLayout *subLayout = new QHBoxLayout;
+ subLayout->addWidget(label);
+ subLayout->addWidget(orient);
+ mainLayout->addLayout(subLayout);
+#endif
+ QLabel* lab = new QLabel (tr ("Enabled columns: "));
+ QHBoxLayout *sub = new QHBoxLayout;
+ sub->addWidget(lab);
+ headerLayout = new QVBoxLayout;
+ QStringList headers = settings.value ("headers", QStringList ()).toStringList();
+ qDebug () << "Available headers: " << availableHeaders;
+ foreach (QString str, availableHeaders)
+ {\
+ QHBoxLayout *cont = new QHBoxLayout;
+ QCheckBox* box = new QCheckBox (str);
+ if (headers.indexOf(str) >= 0)
+ box->setChecked(true);
+ QLabel* label = new QLabel;
+ label->setText(QString::fromUtf8("<b><a style='text-decoration:none' href='up'>▲</a> <a style='text-decoration:none' href='down'>▼</a></b>"));
+ label->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
+ label->setProperty("row", str);
+ cont->addWidget(box);
+ cont->addWidget(label);
+ headerLayout->addLayout(cont);
+ connect (label, SIGNAL(linkActivated(QString)), this, SLOT (orderControl(QString)));
+ }
+ sub->addLayout(headerLayout);
+ mainLayout->addLayout(sub);