qtmobility/examples/publish-subscribe/publisherdialog.cpp
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 5 453da2cfceef
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    38 ** $QT_END_LICENSE$
    38 ** $QT_END_LICENSE$
    39 **
    39 **
    40 ****************************************************************************/
    40 ****************************************************************************/
    41 
    41 
    42 #include "publisherdialog.h"
    42 #include "publisherdialog.h"
       
    43 #if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)
       
    44 #include "ui_publisherdialog_hor.h"
       
    45 #else
    43 #include "ui_publisherdialog.h"
    46 #include "ui_publisherdialog.h"
       
    47 #endif
    44 
    48 
    45 #include <qvaluespacepublisher.h>
    49 #include <qvaluespacepublisher.h>
    46 
    50 
    47 #ifdef QTM_SMALL_SCREEN
    51 #ifdef QTM_EXAMPLES_SMALL_SCREEN
    48 #include <QPushButton>
    52 #include <QPushButton>
    49 #endif
    53 #endif
    50 
    54 
    51 #include <QDebug>
    55 #include <QDebug>
    52 
    56 
    53 PublisherDialog::PublisherDialog(QWidget *parent)
    57 PublisherDialog::PublisherDialog(QWidget *parent)
    54 :   QDialog(parent), ui(new Ui::PublisherDialog), publisher(0)
    58 :   QDialog(parent), ui(new Ui::PublisherDialog), publisher(0)
    55 {
    59 {
    56     ui->setupUi(this);
    60     ui->setupUi(this);
    57 
    61 
    58 #ifdef QTM_SMALL_SCREEN
    62 #ifdef QTM_EXAMPLES_SMALL_SCREEN
    59     QPushButton *switchButton =
    63     QPushButton *switchButton =
    60         ui->buttonBox->addButton(tr("Switch"), QDialogButtonBox::ActionRole);
    64         ui->buttonBox->addButton(tr("Switch"), QDialogButtonBox::ActionRole);
    61     connect(switchButton, SIGNAL(clicked()), this, SIGNAL(switchRequested()));
    65     connect(switchButton, SIGNAL(clicked()), this, SIGNAL(switchRequested()));
    62 #endif
    66 #endif
    63 
    67