Убрали ненужный label
И связанное с ним событие. Хотя в целом я рассматриваю поместить label, показывающий степень свободы чертежа
This commit is contained in:
@@ -4,7 +4,6 @@ DRAWer_2_0::DRAWer_2_0(QWidget *parent)
|
||||
: QMainWindow(parent)
|
||||
{
|
||||
ui.setupUi(this);
|
||||
counter = 0;
|
||||
}
|
||||
|
||||
DRAWer_2_0::~DRAWer_2_0()
|
||||
@@ -12,9 +11,7 @@ DRAWer_2_0::~DRAWer_2_0()
|
||||
|
||||
|
||||
void DRAWer_2_0::on_Line_Button_clicked()
|
||||
{
|
||||
ui.label->setText(QString::number(counter++));
|
||||
ui.widget->changeMode(Mode::DrawingLine);
|
||||
{ ui.widget->changeMode(Mode::DrawingLine);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -26,6 +26,5 @@ private slots:
|
||||
|
||||
private:
|
||||
Ui::DRAWer_2_0Class ui;
|
||||
int counter;
|
||||
};
|
||||
|
||||
|
||||
@@ -88,22 +88,6 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>1000</width>
|
||||
<height>100</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignmentFlag::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Canvas" name="widget" native="true">
|
||||
<property name="sizePolicy">
|
||||
|
||||
Reference in New Issue
Block a user