TabDialog::TabDialog( QWidget *parent, const char *name, const QString &_filename ) : QTabDialog( parent, name ), filename( _filename ), fileinfo( filename ) { setupTab1(); setupTab2(); setupTab3(); connect( this, SIGNAL( applyButtonPressed() ), qApp, SLOT( quit() ) ); }
void AddresseeEditorWidget::initGUI() { QVBoxLayout *layout = new QVBoxLayout( this ); mTabWidget = new QTabWidget( this ); layout->addWidget( mTabWidget ); setupTab1(); setupTab2(); setupAdditionalTabs(); setupCustomFieldsTabs(); connect( mTabWidget, SIGNAL( currentChanged(QWidget*) ), SLOT( pageChanged(QWidget*) ) ); }