fixed alignment problems in the dialog

This commit is contained in:
Volker Fischer 2015-02-04 18:12:50 +00:00
parent f4820f6c0f
commit a26fc768bf

View file

@ -539,10 +539,7 @@ CMusProfDlg::CMusProfDlg ( CClient* pNCliP,
setWindowIcon ( QIcon ( QString::fromUtf8 ( ":/png/main/res/mainicon.png" ) ) ); setWindowIcon ( QIcon ( QString::fromUtf8 ( ":/png/main/res/mainicon.png" ) ) );
QVBoxLayout* pLayout = new QVBoxLayout ( this ); QVBoxLayout* pLayout = new QVBoxLayout ( this );
QHBoxLayout* pMainSubLayout = new QHBoxLayout;
QHBoxLayout* pButSubLayout = new QHBoxLayout; QHBoxLayout* pButSubLayout = new QHBoxLayout;
QVBoxLayout* pMLeftSubLayout = new QVBoxLayout;
QVBoxLayout* pMRightSubLayout = new QVBoxLayout;
QLabel* plblAlias = new QLabel ( "Alias/Name", this ); QLabel* plblAlias = new QLabel ( "Alias/Name", this );
pedtAlias = new QLineEdit ( this ); pedtAlias = new QLineEdit ( this );
QLabel* plblInstrument = new QLabel ( "Instrument", this ); QLabel* plblInstrument = new QLabel ( "Instrument", this );
@ -555,27 +552,30 @@ CMusProfDlg::CMusProfDlg ( CClient* pNCliP,
pcbxSkill = new QComboBox ( this ); pcbxSkill = new QComboBox ( this );
QPushButton* butClose = new QPushButton ( "&Close", this ); QPushButton* butClose = new QPushButton ( "&Close", this );
pMLeftSubLayout->addStretch(); QGridLayout* pGridLayout = new QGridLayout;
pMLeftSubLayout->addWidget ( plblAlias ); plblAlias->setSizePolicy ( QSizePolicy::Minimum, QSizePolicy::Expanding );
pMLeftSubLayout->addStretch(); pGridLayout->addWidget ( plblAlias, 0, 0 );
pMLeftSubLayout->addWidget ( plblInstrument ); pGridLayout->addWidget ( pedtAlias, 0, 1 );
pMLeftSubLayout->addStretch();
pMLeftSubLayout->addWidget ( plblCountry ); plblInstrument->setSizePolicy ( QSizePolicy::Minimum, QSizePolicy::Expanding );
pMLeftSubLayout->addStretch(); pGridLayout->addWidget ( plblInstrument, 1, 0 );
pMLeftSubLayout->addWidget ( plblCity ); pGridLayout->addWidget ( pcbxInstrument, 1, 1 );
pMLeftSubLayout->addStretch();
pMLeftSubLayout->addWidget ( plblSkill ); plblCountry->setSizePolicy ( QSizePolicy::Minimum, QSizePolicy::Expanding );
pMLeftSubLayout->addStretch(); pGridLayout->addWidget ( plblCountry, 2, 0 );
pMRightSubLayout->addWidget ( pedtAlias ); pGridLayout->addWidget ( pcbxCountry, 2, 1 );
pMRightSubLayout->addWidget ( pcbxInstrument );
pMRightSubLayout->addWidget ( pcbxCountry ); plblCity->setSizePolicy ( QSizePolicy::Minimum, QSizePolicy::Expanding );
pMRightSubLayout->addWidget ( pedtCity ); pGridLayout->addWidget ( plblCity, 3, 0 );
pMRightSubLayout->addWidget ( pcbxSkill ); pGridLayout->addWidget ( pedtCity, 3, 1 );
pMainSubLayout->addLayout ( pMLeftSubLayout );
pMainSubLayout->addLayout ( pMRightSubLayout ); plblSkill->setSizePolicy ( QSizePolicy::Minimum, QSizePolicy::Expanding );
pGridLayout->addWidget ( plblSkill, 4, 0 );
pGridLayout->addWidget ( pcbxSkill, 4, 1 );
pButSubLayout->addStretch(); pButSubLayout->addStretch();
pButSubLayout->addWidget ( butClose ); pButSubLayout->addWidget ( butClose );
pLayout->addLayout ( pMainSubLayout ); pLayout->addLayout ( pGridLayout );
pLayout->addLayout ( pButSubLayout ); pLayout->addLayout ( pButSubLayout );
// we do not want to close button to be a default one (the mouse pointer // we do not want to close button to be a default one (the mouse pointer