ViewBase added and major changes to use the new architecture
[qtmeetings] / src / UserInterface / Views / MeetingInfoDialog.cpp
index 95e2cce..3250e82 100644 (file)
@@ -13,6 +13,26 @@ MeetingInfoDialog::MeetingInfoDialog( Meeting *aMeeting, QWidget *aParent ) :
 {
        setWindowTitle( tr( "Details" ) );
 
+       if ( aMeeting != 0 )
+       {
+               createDialogView( aMeeting );
+       }
+
+       setMinimumWidth( MeetingInfoDialog::width );
+       setMinimumHeight( MeetingInfoDialog::height );
+}
+
+MeetingInfoDialog::~MeetingInfoDialog()
+{
+}
+
+void MeetingInfoDialog::setMeeting(Meeting *aMeeting)
+{
+       createDialogView( aMeeting );
+}
+
+void MeetingInfoDialog::createDialogView(Meeting *aMeeting)
+{
        QFont normalFont;
        normalFont.setPointSize( 11 );
 
@@ -75,11 +95,4 @@ MeetingInfoDialog::MeetingInfoDialog( Meeting *aMeeting, QWidget *aParent ) :
        layout->addStretch();
        layout->addLayout( buttonLayout );
        setLayout( layout );
-
-       setMinimumWidth( MeetingInfoDialog::width );
-       setMinimumHeight( MeetingInfoDialog::height );
-}
-
-MeetingInfoDialog::~MeetingInfoDialog()
-{
 }