Use the star widget in it's right place

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2013-04-24 19:57:10 -03:00
parent 17c4120143
commit 634abb8bb2
2 changed files with 13 additions and 8 deletions

View file

@ -14,7 +14,7 @@
<string>TabWidget</string>
</property>
<property name="currentIndex">
<number>2</number>
<number>1</number>
</property>
<widget class="QWidget" name="infoTab">
<attribute name="title">
@ -356,9 +356,6 @@
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLineEdit" name="ratting"/>
</item>
<item row="5" column="1">
<widget class="QLineEdit" name="suit"/>
</item>
@ -372,6 +369,9 @@
<item row="7" column="0" colspan="2">
<widget class="QTextEdit" name="notes"/>
</item>
<item row="5" column="0">
<widget class="StarWidget" name="widget" native="true"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="equipmentTab">
@ -805,6 +805,14 @@
</layout>
</widget>
</widget>
<customwidgets>
<customwidget>
<class>StarWidget</class>
<extends>QWidget</extends>
<header>starwidget.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>

View file

@ -28,10 +28,7 @@ MainWindow::MainWindow() : ui(new Ui::MainWindow()),
ui->ListWidget->setModel(model);
this->setWindowIcon(QIcon(":subsurface-icon"));
// Just to test the star widgets, can be safely removed.
StarWidget *star = new StarWidget(0);
star->setMaximumStars(10);
star->setCurrentStars(3);
star->show();
}
void MainWindow::on_actionNew_triggered()