This commit is contained in:
@@ -5,97 +5,68 @@
|
|||||||
<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="orientation" >
|
<property name="spacing" >
|
||||||
<enum>Qt::Horizontal</enum>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="standardButtons" >
|
<item row="0" column="0" >
|
||||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
|
<widget class="QListWidget" name="listWidget" >
|
||||||
</property>
|
<property name="horizontalScrollBarPolicy" >
|
||||||
</widget>
|
<enum>Qt::ScrollBarAlwaysOff</enum>
|
||||||
<widget class="QTableWidget" name="tableWidget" >
|
</property>
|
||||||
<property name="geometry" >
|
<property name="iconSize" >
|
||||||
<rect>
|
<size>
|
||||||
<x>30</x>
|
<width>50</width>
|
||||||
<y>10</y>
|
<height>50</height>
|
||||||
<width>581</width>
|
</size>
|
||||||
<height>351</height>
|
</property>
|
||||||
</rect>
|
<property name="flow" >
|
||||||
</property>
|
<enum>QListView::TopToBottom</enum>
|
||||||
<property name="showGrid" >
|
</property>
|
||||||
<bool>false</bool>
|
<property name="isWrapping" stdset="0" >
|
||||||
</property>
|
<bool>true</bool>
|
||||||
<row>
|
</property>
|
||||||
<property name="text" >
|
<property name="resizeMode" >
|
||||||
<string>New Row</string>
|
<enum>QListView::Adjust</enum>
|
||||||
</property>
|
</property>
|
||||||
</row>
|
<property name="layoutMode" >
|
||||||
<row>
|
<enum>QListView::Batched</enum>
|
||||||
<property name="text" >
|
</property>
|
||||||
<string>New Row</string>
|
<property name="gridSize" >
|
||||||
</property>
|
<size>
|
||||||
</row>
|
<width>70</width>
|
||||||
<row>
|
<height>70</height>
|
||||||
<property name="text" >
|
</size>
|
||||||
<string>New Row</string>
|
</property>
|
||||||
</property>
|
<property name="viewMode" >
|
||||||
</row>
|
<enum>QListView::IconMode</enum>
|
||||||
<row>
|
</property>
|
||||||
<property name="text" >
|
<property name="wordWrap" >
|
||||||
<string>New Row</string>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</row>
|
</widget>
|
||||||
<row>
|
</item>
|
||||||
<property name="text" >
|
<item row="1" column="0" >
|
||||||
<string>New Row</string>
|
<widget class="QDialogButtonBox" name="buttonBox" >
|
||||||
</property>
|
<property name="orientation" >
|
||||||
</row>
|
<enum>Qt::Horizontal</enum>
|
||||||
<row>
|
</property>
|
||||||
<property name="text" >
|
<property name="standardButtons" >
|
||||||
<string>New Row</string>
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
|
||||||
</property>
|
</property>
|
||||||
</row>
|
</widget>
|
||||||
<row>
|
</item>
|
||||||
<property name="text" >
|
</layout>
|
||||||
<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>
|
||||||
|
|||||||
@@ -27,7 +27,21 @@ 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);
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user