mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-01-23 13:42:55 +08:00
Merge pull request #131 from abougouffa/master
Fix the double border issue #130
This commit is contained in:
commit
b31f432a47
@ -98,6 +98,8 @@ About::About(QWidget *parent) :
|
||||
layout()->addLayout(xlayout);
|
||||
setTitle(tr("About"));
|
||||
setFixedWidth(500);
|
||||
|
||||
setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint);
|
||||
}
|
||||
|
||||
About::~About()
|
||||
|
@ -80,6 +80,8 @@ DeviceOptions::DeviceOptions(QWidget *parent, boost::shared_ptr<pv::device::DevI
|
||||
connect(&_mode_check, SIGNAL(timeout()), this, SLOT(mode_check()));
|
||||
_mode_check.setInterval(100);
|
||||
_mode_check.start();
|
||||
|
||||
setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint);
|
||||
}
|
||||
|
||||
void DeviceOptions::accept()
|
||||
|
@ -36,8 +36,7 @@ DSDialog::DSDialog(QWidget *parent, bool hasClose) :
|
||||
QDialog(parent),
|
||||
_moving(false)
|
||||
{
|
||||
setWindowFlags(Qt::FramelessWindowHint | Qt::Dialog | Qt::WindowSystemMenuHint |
|
||||
Qt::WindowMinimizeButtonHint | Qt::WindowMaximizeButtonHint);
|
||||
setWindowFlags(Qt::FramelessWindowHint | Qt::Dialog | Qt::WindowSystemMenuHint);
|
||||
setAttribute(Qt::WA_TranslucentBackground);
|
||||
|
||||
build_main(hasClose);
|
||||
|
@ -36,8 +36,7 @@ DSMessageBox::DSMessageBox(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
_moving(false)
|
||||
{
|
||||
setWindowFlags(Qt::FramelessWindowHint | Qt::Dialog | Qt::WindowSystemMenuHint |
|
||||
Qt::WindowMinimizeButtonHint | Qt::WindowMaximizeButtonHint);
|
||||
setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint | Qt::WindowSystemMenuHint);
|
||||
setAttribute(Qt::WA_TranslucentBackground);
|
||||
_main = new QWidget(this);
|
||||
QVBoxLayout *mlayout = new QVBoxLayout(_main);
|
||||
@ -51,8 +50,7 @@ DSMessageBox::DSMessageBox(QWidget *parent) :
|
||||
_main->setGraphicsEffect(bodyShadow);
|
||||
|
||||
_msg = new QMessageBox(this);
|
||||
_msg->setWindowFlags(Qt::FramelessWindowHint | Qt::Widget | Qt::WindowSystemMenuHint |
|
||||
Qt::WindowMinimizeButtonHint | Qt::WindowMaximizeButtonHint);
|
||||
_msg->setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint | Qt::WindowSystemMenuHint);
|
||||
|
||||
_titlebar = new toolbars::TitleBar(false, this);
|
||||
_titlebar->setTitle(tr("Message"));
|
||||
|
@ -89,6 +89,9 @@ FftOptions::FftOptions(QWidget *parent, SigSession &session) :
|
||||
assert(length.size() > 0);
|
||||
assert(view_modes.size() > 0);
|
||||
assert(dbv_ranges.size() > 0);
|
||||
|
||||
setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint);
|
||||
|
||||
for (unsigned int i = 0; i < windows.size(); i++)
|
||||
{
|
||||
_window_combobox->addItem(windows[i],
|
||||
|
@ -45,8 +45,7 @@ MainFrame::MainFrame(DeviceManager &device_manager,
|
||||
setAttribute(Qt::WA_TranslucentBackground);
|
||||
// Make this a borderless window which can't
|
||||
// be resized or moved via the window system
|
||||
setWindowFlags(Qt::FramelessWindowHint | Qt::WindowSystemMenuHint |
|
||||
Qt::WindowMinimizeButtonHint | Qt::WindowMaximizeButtonHint);
|
||||
setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::WindowSystemMenuHint);
|
||||
setMinimumHeight(680);
|
||||
setMinimumWidth(800);
|
||||
//resize(1024, 768);
|
||||
|
Loading…
x
Reference in New Issue
Block a user