QTfrontend/pageconnecting.cpp
changeset 6042 8b5345758f62
parent 5204 e1a5f4d5d86a
equal deleted inserted replaced
6040:a740069c21e3 6042:8b5345758f62
    14  * You should have received a copy of the GNU General Public License
    14  * You should have received a copy of the GNU General Public License
    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 <QVBoxLayout>
    20 #include <QLabel>
    20 #include <QLabel>
    21 
    21 
    22 #include "pageconnecting.h"
    22 #include "pageconnecting.h"
    23 
    23 
    24 PageConnecting::PageConnecting(QWidget* parent) :
    24 QLayout * PageConnecting::bodyLayoutDefinition()
    25     AbstractPage(parent)
       
    26 {
    25 {
    27     QGridLayout * pageLayout = new QGridLayout(this);
    26     QVBoxLayout * pageLayout = new QVBoxLayout();
    28 
    27 
    29     QLabel * lblConnecting = new QLabel(this);
    28     QLabel * lblConnecting = new QLabel(this);
    30     lblConnecting->setText(tr("Connecting..."));
    29     lblConnecting->setText(tr("Connecting..."));
    31     pageLayout->addWidget(lblConnecting);
    30     pageLayout->addWidget(lblConnecting);
    32 
    31 
    33     QPushButton * pbCancel = new QPushButton(this);
    32     return pageLayout;
    34     pbCancel->setText(tr("Cancel"));
       
    35     pageLayout->addWidget(pbCancel);
       
    36     connect(pbCancel, SIGNAL(clicked()), this, SIGNAL(cancelConnection()));
       
    37 }
    33 }
       
    34 
       
    35 void PageConnecting::connectSignals()
       
    36 {
       
    37     connect(this, SIGNAL(goBack()), this, SIGNAL(cancelConnection()));
       
    38 }
       
    39 
       
    40 PageConnecting::PageConnecting(QWidget* parent) :  AbstractPage(parent)
       
    41 {
       
    42     initPage();
       
    43 }