Commit caacb832 by NitefullWind

1. 不设置可移动区域。 2. 删除一些无用代码。

parent ff979b36
......@@ -124,7 +124,8 @@ protected:
bool fOnResizeBorder = false;
//! Test caption area
QRegion m_children_region(0, 0, width() - 54, 60);
// QRegion m_children_region(0, 0, width() - 54, 60);
QRegion m_children_region(0, 0, width() - 54, 0);
QRegion new_region = m_children_region.translated(window_rect.x() , window_rect.y());
if (new_region.contains(mouse_pos)) {
//! Title regions contains the mouse position, treat it as caption area
......
......@@ -12,8 +12,7 @@
HostWidget::HostWidget(QWidget *parent) :
FMPWindow(parent),
ui(new Ui::HostWidget),
_paymentMethodBtns(new QButtonGroup(this))
ui(new Ui::HostWidget)
{
ui->setupUi(this);
......@@ -62,10 +61,6 @@ HostWidget::HostWidget(QWidget *parent) :
//ui->tableWidget->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
ui->tableWidget->verticalHeader()->setDefaultSectionSize(45);
_paymentMethodBtns->setExclusive(true);
connect(_paymentMethodBtns, SIGNAL(buttonToggled(QAbstractButton*,bool)), this, SLOT(onPaymentMethodBtnsToggled(QAbstractButton*,bool)));
}
void HostWidget::ShowWidget(QWidget *showwidget)
......@@ -157,7 +152,6 @@ HostWidget::~HostWidget()
delete _label_pay_timer;
_label_pay_timer = NULL;
}
delete _paymentMethodBtns;
}
void HostWidget::keyPressEvent(QKeyEvent *ke)
......
......@@ -120,8 +120,6 @@ private:
QMovie *_label_pay_movie;
QButtonGroup *_paymentMethodBtns;
int _line;
bool _need_exit;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment