Add Appawards docs.
[dorian] / widgets / listwindow.cpp
index 3443024..e12f4c2 100644 (file)
@@ -21,7 +21,6 @@ ListWindow::ListWindow(const QString &noItems_, QWidget *parent):
     list = new QListWidget(this);
     list->setSelectionMode(QAbstractItemView::SingleSelection);
 #if defined(Q_OS_SYMBIAN)
-    list->setFixedWidth(QApplication::desktop()->availableGeometry().width());
     list->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
 #endif
     populateList();
@@ -69,7 +68,9 @@ void ListWindow::insertButton(int row, const Button &b)
 {
     QPushButton *pushButton = new QPushButton(
         QIcon(Platform::instance()->icon(b.iconName)), b.title, this);
+#ifdef Q_OS_SYMBIAN
     pushButton->setFixedWidth(list->width());
+#endif
     connect(pushButton, SIGNAL(clicked()), b.receiver, b.slot);
     QListWidgetItem *item = new QListWidgetItem();
     item->setFlags(Qt::NoItemFlags);