picture dialog improved
This commit is contained in:
parent
5e1d5d14bf
commit
4da12a2796
3 changed files with 48 additions and 6 deletions
|
@ -61,3 +61,8 @@ void PictureDialog::setJsonString(SnapmaticPicture *picture)
|
||||||
|
|
||||||
ui->labJSON->setText(jsonDrawString.arg(locX, locY, locZ, plyrsStr, crewID));
|
ui->labJSON->setText(jsonDrawString.arg(locX, locY, locZ, plyrsStr, crewID));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PictureDialog::on_cmdClose_clicked()
|
||||||
|
{
|
||||||
|
this->close();
|
||||||
|
}
|
||||||
|
|
|
@ -35,6 +35,9 @@ public:
|
||||||
void setJsonString(SnapmaticPicture *picture);
|
void setJsonString(SnapmaticPicture *picture);
|
||||||
~PictureDialog();
|
~PictureDialog();
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void on_cmdClose_clicked();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::PictureDialog *ui;
|
Ui::PictureDialog *ui;
|
||||||
QString jsonDrawString;
|
QString jsonDrawString;
|
||||||
|
|
|
@ -33,15 +33,49 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="hlJSON">
|
||||||
|
<property name="leftMargin">
|
||||||
|
<number>4</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>4</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>4</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
|
<number>4</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="labJSON">
|
<widget class="QLabel" name="labJSON">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Location: X: %1 Y: %2 Z: %3
|
<string><span style=" font-weight:600;">Location:</span> X: %1, Y: %2, Z: %3 <br><span style=" font-weight:600;">Players:</span> %4<br><span style=" font-weight:600;">Crew ID:</span> %5</string>
|
||||||
Players: %4
|
|
||||||
Crew ID: %5</string>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="hsJSON">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="cmdClose">
|
||||||
|
<property name="text">
|
||||||
|
<string>Close</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
|
|
Loading…
Reference in a new issue