CMessageDialog::CMessageDialog( const QString& title, const QString& text, QMessageBox::Icon iconStyle, QWidget *parent ) : QDialog(parent), ui(new Ui::CMessageDialog) { initializeUi( iconStyle ); setWindowTitle( title ); setCaption( text ); clear(); }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), m_ui(new Ui::MainWindow) { m_ui->setupUi(this); initializeUi(); }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); initializeUi(); loadSettings(); }
GeometryPropertiesWidget::GeometryPropertiesWidget(ScreenieModelInterface &screenieModel, ScreenieControl &screenieControl, QWidget *parent) : PropertyValidatorWidget(parent), ui(new Ui::GeometryPropertiesWidget), d(new GeometryPropertiesWidgetPrivate(screenieModel, screenieControl)) { ui->setupUi(this); initializeUi(); updateUi(); frenchConnection(); }
TemplateModelPropertiesWidget::TemplateModelPropertiesWidget(ScreenieTemplateModel &templateModel, ScreenieControl &screenieControl, QWidget *parent) : PropertyValidatorWidget(parent), ui(new Ui::TemplateModelPropertiesWidget), d(new TemplateModelPropertiesWidgetPrivate(templateModel, screenieControl)) { ui->setupUi(this); initializeUi(); updateUi(); frenchConnection(); }
BOOL CDisdrawDlg::OnInitDialog() { CDialog::OnInitDialog(); // Set the icon for this dialog box. The framework does this automatically // when the application's main window is not a dialog box. SetIcon(m_hIcon, TRUE); // Use the large icon. SetIcon(m_hIcon, FALSE); // Use the small icon. // // Display the logon name in the title bar. // SetWindowText(m_strLogin); // // No queues are open yet. // m_hqIncoming = NULL; m_hqOutgoing = NULL; // // Establish connection mode. // m_fDsEnabledLocaly = IsDsEnabledLocaly(); if (!m_fDsEnabledLocaly) { // // The computer is DS-disabled. This is the right place to open the receiving queue // because it is a local private queue. This operation is not time-consuming. // // // Open the receiving queue and receive incoming messages. // if (OpenPrivateReceiveQueue()) { startReceiveUpdateThread(); } else { // // The receiving queue could not be opened. // MessageBox("The receiving queue cannot be opened."); } } initializeUi(m_fDsEnabledLocaly); return TRUE; // Return TRUE unless you set the focus to a control. }
Doppelclick::Doppelclick (QWidget *parent) : QWidget(parent) { /* Initialize variables */ gameRunning = false; startTime = 0; timeDifficult = TIME_EASY; /* Initialize the UI */ initializeUi(); /* Connect signals */ connect(doppelButton, SIGNAL(clicked()), this, SLOT(buttonClicked())); connect(diffiSlider, SIGNAL(valueChanged(int)), this, SLOT(setDifficulty(int))); }
CMessageDialog::CMessageDialog(QWidget *parent) : QDialog(parent), ui(new Ui::CMessageDialog) { initializeUi( QMessageBox::NoIcon ); }