mirror of
https://github.com/epasveer/seer.git
synced 2026-08-29 16:40:42 +08:00
A HELP text to SeerThreadManagerWidget.
This commit is contained in:
@@ -12,6 +12,11 @@ QHContainerWidget::QHContainerWidget (QWidget* parent) : QWidget(parent) {
|
||||
QHContainerWidget::~QHContainerWidget () {
|
||||
}
|
||||
|
||||
void QHContainerWidget::setSpacing (int spacing) {
|
||||
|
||||
horizontalLayout->setSpacing(spacing);
|
||||
}
|
||||
|
||||
void QHContainerWidget::addWidget (QWidget* widget) {
|
||||
|
||||
horizontalLayout->addWidget(widget);
|
||||
|
||||
@@ -11,6 +11,7 @@ class QHContainerWidget : public QWidget, protected Ui::QHContainerWidgetForm {
|
||||
explicit QHContainerWidget (QWidget* parent = 0);
|
||||
~QHContainerWidget ();
|
||||
|
||||
void setSpacing (int spacing);
|
||||
void addWidget (QWidget* widget);
|
||||
void removeWidget (QWidget* widget);
|
||||
|
||||
|
||||
@@ -6,14 +6,26 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>0</width>
|
||||
<height>0</height>
|
||||
<width>580</width>
|
||||
<height>145</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>QHContainerWidgetForm</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout"/>
|
||||
</item>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
</property>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Thread Id</string>
|
||||
<string>Group Thread Id</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
|
||||
@@ -35,6 +35,7 @@ SeerThreadManagerWidget::SeerThreadManagerWidget (QWidget* parent) : QWidget(par
|
||||
helpToolButton->setToolTip("Help on thread information.");
|
||||
|
||||
QHContainerWidget* hcontainer = new QHContainerWidget(this);
|
||||
hcontainer->setSpacing(3);
|
||||
hcontainer->addWidget(refreshToolButton);
|
||||
hcontainer->addWidget(helpToolButton);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user