set min/max buttons to dialog window boarder
This commit is contained in:
parent
605edf3005
commit
839576d96f
4 changed files with 8 additions and 5 deletions
|
@ -26,7 +26,8 @@
|
||||||
|
|
||||||
|
|
||||||
/* Implementation *************************************************************/
|
/* Implementation *************************************************************/
|
||||||
CChatDlg::CChatDlg ( QWidget* parent, Qt::WindowFlags f )
|
CChatDlg::CChatDlg ( QWidget* parent, Qt::WindowFlags f ) :
|
||||||
|
QDialog ( parent, f )
|
||||||
{
|
{
|
||||||
setupUi ( this );
|
setupUi ( this );
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,9 @@
|
||||||
|
|
||||||
|
|
||||||
/* Implementation *************************************************************/
|
/* Implementation *************************************************************/
|
||||||
CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP, QWidget* parent )
|
CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP, QWidget* parent,
|
||||||
: pClient ( pNCliP ), QDialog ( parent ),
|
Qt::WindowFlags f )
|
||||||
|
: pClient ( pNCliP ), QDialog ( parent, f ),
|
||||||
ClientSettingsDlg ( pNCliP, parent, Qt::WindowMinMaxButtonsHint ),
|
ClientSettingsDlg ( pNCliP, parent, Qt::WindowMinMaxButtonsHint ),
|
||||||
ChatDlg ( parent, Qt::WindowMinMaxButtonsHint )
|
ChatDlg ( parent, Qt::WindowMinMaxButtonsHint )
|
||||||
{
|
{
|
||||||
|
|
|
@ -69,7 +69,8 @@ class CLlconClientDlg : public QDialog, private Ui_CLlconClientDlgBase
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CLlconClientDlg ( CClient* pNCliP, QWidget* parent = 0 );
|
CLlconClientDlg ( CClient* pNCliP, QWidget* parent = 0,
|
||||||
|
Qt::WindowFlags f = 0 );
|
||||||
virtual ~CLlconClientDlg();
|
virtual ~CLlconClientDlg();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
@ -153,7 +153,7 @@ int main ( int argc, char** argv )
|
||||||
Settings.Load ( strIniFileName.c_str() );
|
Settings.Load ( strIniFileName.c_str() );
|
||||||
|
|
||||||
// GUI object
|
// GUI object
|
||||||
CLlconClientDlg ClientDlg ( &Client, 0 );
|
CLlconClientDlg ClientDlg ( &Client, 0, Qt::WindowMinMaxButtonsHint );
|
||||||
|
|
||||||
// set main window
|
// set main window
|
||||||
pMainWindow = &ClientDlg;
|
pMainWindow = &ClientDlg;
|
||||||
|
|
Loading…
Reference in a new issue