QTfrontend/ui/page/pageroomslist.cpp
changeset 6172 809e1076ffe2
parent 6165 6fe3e922246e
child 6180 0992fc5a4ad9
equal deleted inserted replaced
6171:8627698134b6 6172:809e1076ffe2
    15  * along with this program; if not, write to the Free Software
    15  * along with this program; if not, write to the Free Software
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
    17  */
    17  */
    18 
    18 
    19 #include <QGridLayout>
    19 #include <QGridLayout>
       
    20 #include <QHBoxLayout>
    20 #include <QPushButton>
    21 #include <QPushButton>
    21 #include <QComboBox>
    22 #include <QComboBox>
    22 #include <QLabel>
    23 #include <QLabel>
    23 #include <QLineEdit>
    24 #include <QLineEdit>
    24 #include <QMessageBox>
    25 #include <QMessageBox>
   109     return pageLayout;
   110     return pageLayout;
   110 }
   111 }
   111 
   112 
   112 QLayout * PageRoomsList::footerLayoutDefinition()
   113 QLayout * PageRoomsList::footerLayoutDefinition()
   113 {
   114 {
   114     QGridLayout * bottomLayout = new QGridLayout();
   115     QHBoxLayout * bottomLayout = new QHBoxLayout();
   115 
   116 
   116     lblCount = new QLabel(this);
   117     lblCount = new QLabel(this);
   117     bottomLayout->addWidget(lblCount, 0, 0, Qt::AlignHCenter);
   118     bottomLayout->addWidget(lblCount, 0, Qt::AlignHCenter);
       
   119     bottomLayout->setStretchFactor(lblCount, 1);
   118     lblCount->setText("?");
   120     lblCount->setText("?");
   119     lblCount->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
   121     lblCount->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
   120 
   122 
   121     BtnAdmin = addButton(tr("Admin features"), bottomLayout, 6, 2);
   123     BtnAdmin = addButton(tr("Admin features"), bottomLayout, 1);
       
   124     BtnAdmin->setMinimumWidth(160);
       
   125 
       
   126     // strech left part
       
   127     bottomLayout->setStretch(0, 1);
       
   128     bottomLayout->setStretch(1, 0);
   122 
   129 
   123     return bottomLayout;
   130     return bottomLayout;
   124 }
   131 }
   125 
   132 
   126 void PageRoomsList::connectSignals()
   133 void PageRoomsList::connectSignals()