68 |
68 |
69 PublisherDialog *publisher = 0; |
69 PublisherDialog *publisher = 0; |
70 if (createDefault || createPublisher) { |
70 if (createDefault || createPublisher) { |
71 publisher = new PublisherDialog; |
71 publisher = new PublisherDialog; |
72 QObject::connect(publisher, SIGNAL(rejected()), &app, SLOT(quit())); |
72 QObject::connect(publisher, SIGNAL(rejected()), &app, SLOT(quit())); |
73 #ifndef QTM_SMALL_SCREEN |
73 #ifndef QTM_EXAMPLES_SMALL_SCREEN |
74 publisher->show(); |
74 publisher->show(); |
75 #endif |
75 #endif |
76 } |
76 } |
77 |
77 |
78 SubscriberDialog *subscriber = 0; |
78 SubscriberDialog *subscriber = 0; |
79 if (createDefault || createSubscriber) { |
79 if (createDefault || createSubscriber) { |
80 subscriber = new SubscriberDialog; |
80 subscriber = new SubscriberDialog; |
81 QObject::connect(subscriber, SIGNAL(rejected()), &app, SLOT(quit())); |
81 QObject::connect(subscriber, SIGNAL(rejected()), &app, SLOT(quit())); |
82 #ifndef QTM_SMALL_SCREEN |
82 #ifndef QTM_EXAMPLES_SMALL_SCREEN |
83 subscriber->show(); |
83 subscriber->show(); |
84 #else |
84 #else |
85 subscriber->showMaximized(); |
85 subscriber->showMaximized(); |
86 #endif |
86 #endif |
87 } |
87 } |
88 |
88 |
89 #ifdef QTM_SMALL_SCREEN |
89 #ifdef QTM_EXAMPLES_SMALL_SCREEN |
90 QObject::connect(publisher, SIGNAL(switchRequested()), subscriber, SLOT(showMaximized())); |
90 QObject::connect(publisher, SIGNAL(switchRequested()), subscriber, SLOT(showMaximized())); |
91 QObject::connect(publisher, SIGNAL(switchRequested()), subscriber, SLOT(repaint())); |
91 QObject::connect(publisher, SIGNAL(switchRequested()), subscriber, SLOT(repaint())); |
92 QObject::connect(publisher, SIGNAL(switchRequested()), publisher, SLOT(hide())); |
92 QObject::connect(publisher, SIGNAL(switchRequested()), publisher, SLOT(hide())); |
93 |
93 |
94 QObject::connect(subscriber, SIGNAL(switchRequested()), publisher, SLOT(showMaximized())); |
94 QObject::connect(subscriber, SIGNAL(switchRequested()), publisher, SLOT(showMaximized())); |