This commit is contained in:
doitux
2007-05-24 20:32:09 +00:00
parent 5431f0b93a
commit 536d70723e
3 changed files with 72 additions and 84 deletions
+49 -78
View File
@@ -5,22 +5,59 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>879</width> <width>478</width>
<height>523</height> <height>272</height>
</rect> </rect>
</property> </property>
<property name="windowTitle" > <property name="windowTitle" >
<string>Please select an avatar</string> <string>Please select an avatar</string>
</property> </property>
<widget class="QDialogButtonBox" name="buttonBox" > <layout class="QGridLayout" >
<property name="geometry" > <property name="margin" >
<rect> <number>9</number>
<x>480</x>
<y>480</y>
<width>341</width>
<height>32</height>
</rect>
</property> </property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QListWidget" name="listWidget" >
<property name="horizontalScrollBarPolicy" >
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="iconSize" >
<size>
<width>50</width>
<height>50</height>
</size>
</property>
<property name="flow" >
<enum>QListView::TopToBottom</enum>
</property>
<property name="isWrapping" stdset="0" >
<bool>true</bool>
</property>
<property name="resizeMode" >
<enum>QListView::Adjust</enum>
</property>
<property name="layoutMode" >
<enum>QListView::Batched</enum>
</property>
<property name="gridSize" >
<size>
<width>70</width>
<height>70</height>
</size>
</property>
<property name="viewMode" >
<enum>QListView::IconMode</enum>
</property>
<property name="wordWrap" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" > <property name="orientation" >
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
@@ -28,74 +65,8 @@
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set> <set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
</property> </property>
</widget> </widget>
<widget class="QTableWidget" name="tableWidget" > </item>
<property name="geometry" > </layout>
<rect>
<x>30</x>
<y>10</y>
<width>581</width>
<height>351</height>
</rect>
</property>
<property name="showGrid" >
<bool>false</bool>
</property>
<row>
<property name="text" >
<string>New Row</string>
</property>
</row>
<row>
<property name="text" >
<string>New Row</string>
</property>
</row>
<row>
<property name="text" >
<string>New Row</string>
</property>
</row>
<row>
<property name="text" >
<string>New Row</string>
</property>
</row>
<row>
<property name="text" >
<string>New Row</string>
</property>
</row>
<row>
<property name="text" >
<string>New Row</string>
</property>
</row>
<row>
<property name="text" >
<string>New Row</string>
</property>
</row>
<column>
<property name="text" >
<string>New Column</string>
</property>
</column>
<column>
<property name="text" >
<string>New Column</string>
</property>
</column>
<column>
<property name="text" >
<string>New Column</string>
</property>
</column>
<column>
<property name="text" >
<string>New Column</string>
</property>
</column>
</widget>
</widget> </widget>
<resources/> <resources/>
<connections> <connections>
@@ -29,6 +29,20 @@ selectAvatarDialogImpl::selectAvatarDialogImpl(QWidget *parent, ConfigFile *c)
setupUi(this); setupUi(this);
// listWidget->setViewMode(QListView::IconMode);
// listWidget->setIconSize(QSize(50,50));
// listWidget->setSpacing(20);
// listWidget->setDragEnabled(FALSE);
// listWidget->setResizeMode(QListView::Adjust);
// listWidget->setLayoutDirection(Qt::LeftToRight);
int i;
for (i=0; i<30; i++) {
QListWidgetItem *myItem = new QListWidgetItem;
myItem->setIcon(QIcon(QPixmap(":/guiv2/resources/guiv2/genereticAvatar.png")));
listWidget->addItem(myItem);
};
} }
void selectAvatarDialogImpl::exec() { void selectAvatarDialogImpl::exec() {
@@ -26,6 +26,7 @@
#include <QtGui> #include <QtGui>
class ConfigFile; class ConfigFile;
class selectAvatarDialogImpl;
class selectAvatarDialogImpl: public QDialog, public Ui::selectAvatarDialog { class selectAvatarDialogImpl: public QDialog, public Ui::selectAvatarDialog {
Q_OBJECT Q_OBJECT
@@ -34,8 +35,10 @@ public:
void exec(); void exec();
public slots: public slots:
private: private:
ConfigFile* myConfig; ConfigFile* myConfig;