Changeset 2780
- Timestamp:
- 09/16/08 13:13:03 (18 months ago)
- Location:
- pcbsd
- Files:
-
- 10 modified
-
branches/7.0/SystemUpdater/SystemUpdater.cpp (modified) (2 diffs)
-
branches/7.0/SystemUpdater/SystemUpdater.h (modified) (1 diff)
-
branches/7.0/SystemUpdater/UpdaterTray.cpp (modified) (4 diffs)
-
branches/7.0/SystemUpdater/updaterDialog.cpp (modified) (2 diffs)
-
branches/7.0/SystemUpdater/updaterDialog.h (modified) (1 diff)
-
trunk/SystemUpdater/SystemUpdater.cpp (modified) (2 diffs)
-
trunk/SystemUpdater/SystemUpdater.h (modified) (1 diff)
-
trunk/SystemUpdater/UpdaterTray.cpp (modified) (4 diffs)
-
trunk/SystemUpdater/updaterDialog.cpp (modified) (2 diffs)
-
trunk/SystemUpdater/updaterDialog.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pcbsd/branches/7.0/SystemUpdater/SystemUpdater.cpp
r2131 r2780 14 14 #include <Q3ListViewItemIterator> 15 15 #include <Q3CheckListItem> 16 16 #include <QtGui> 17 17 18 18 void systemUpdater::programInit() … … 50 50 51 51 52 void systemUpdater::closeEvent( QCloseEvent * e)52 void systemUpdater::closeEvent( QCloseEvent *event ) 53 53 { 54 54 // Reimplementation to grab window manager close call 55 event->ignore(); 55 56 slotClose(); 56 57 } -
pcbsd/branches/7.0/SystemUpdater/SystemUpdater.h
r2131 r2780 25 25 QStringList getListOfCheckedPBIItems(); 26 26 27 protected: 28 void closeEvent( QCloseEvent *event ); 29 27 30 public slots: 28 31 void programInit(); 29 32 void slotClose(); 30 void closeEvent( QCloseEvent * e );31 33 void slotUserClickedCheckSysUpdates(); 32 34 void setTextAvailSysUpdates( QString &text ); -
pcbsd/branches/7.0/SystemUpdater/UpdaterTray.cpp
r2600 r2780 1122 1122 1123 1123 QMessageBox::critical( this->contextMenu(), tr("Online Update"), tr("An error occured while downloading. Please check your connection or try again later."), QMessageBox::Ok ); 1124 UpdaterStatusDialog->hide(); 1124 if ( UpdaterStatusDialog->isShown() ) 1125 { 1126 UpdaterStatusDialog->hide(); 1127 } 1125 1128 1126 1129 programstatus = CHECK_FAILED; … … 1194 1197 { 1195 1198 // The updates are finished! 1199 // Bring back up the progress window, since it needs to processevents 1200 UpdaterStatusDialog->show(); 1196 1201 1197 1202 if ( requiresSysReboot == 1) … … 1199 1204 QMessageBox::information( this->contextMenu(), tr("Online Update"), tr("Updates successfully installed! Your system will need to reboot to finish."), QMessageBox::Ok); 1200 1205 } else { 1201 QMessageBox::information( this->contextMenu(), tr("Online Update"), tr("Updates successfully installed!"), QMessageBox::Ok ); 1202 } 1203 1204 UpdaterStatusDialog->hide(); 1206 QMessageBox::information( 0, tr("Online Update"), tr("Updates successfully installed!"), QMessageBox::Ok ); 1207 } 1208 1209 if ( UpdaterStatusDialog->isShown() ) 1210 { 1211 UpdaterStatusDialog->hide(); 1212 } 1205 1213 programstatus = CHECK_FAILED; 1206 1214 // Check for updates again now … … 1913 1921 // The updates are finished! 1914 1922 1923 // Bring back up the progress window, since it needs to processevents 1924 UpdaterStatusDialog->show(); 1925 1915 1926 1916 1927 QMessageBox::information( this->contextMenu(), tr("Online Update"), tr("PBI Upgrades finished!"), QMessageBox::Ok ); 1917 UpdaterStatusDialog->hide(); 1928 if ( UpdaterStatusDialog->isShown() ) 1929 { 1930 UpdaterStatusDialog->hide(); 1931 } 1918 1932 // Check for updates again now 1919 1933 programstatus = SYSTEM_UP2DATE; -
pcbsd/branches/7.0/SystemUpdater/updaterDialog.cpp
r2600 r2780 14 14 #include <Q3ListView> 15 15 #include <Q3ListViewItemIterator> 16 #include <QtGui> 16 17 17 18 void updaterStatus::programInit() … … 30 31 31 32 32 void updaterStatus::closeEvent( QCloseEvent * e)33 void updaterStatus::closeEvent( QCloseEvent *event ) 33 34 { 35 event->ignore(); 34 36 slotPushClose(); 35 37 } -
pcbsd/branches/7.0/SystemUpdater/updaterDialog.h
r2600 r2780 36 36 void slotJobUpdateSpeed(KJob*, unsigned long speed); 37 37 38 protected: 39 void closeEvent( QCloseEvent *event ); 38 40 39 41 private slots: 40 42 void slotPushClose(); 41 void closeEvent( QCloseEvent * e );42 43 43 44 private: -
pcbsd/trunk/SystemUpdater/SystemUpdater.cpp
r2131 r2780 14 14 #include <Q3ListViewItemIterator> 15 15 #include <Q3CheckListItem> 16 16 #include <QtGui> 17 17 18 18 void systemUpdater::programInit() … … 50 50 51 51 52 void systemUpdater::closeEvent( QCloseEvent * e)52 void systemUpdater::closeEvent( QCloseEvent *event ) 53 53 { 54 54 // Reimplementation to grab window manager close call 55 event->ignore(); 55 56 slotClose(); 56 57 } -
pcbsd/trunk/SystemUpdater/SystemUpdater.h
r2131 r2780 25 25 QStringList getListOfCheckedPBIItems(); 26 26 27 protected: 28 void closeEvent( QCloseEvent *event ); 29 27 30 public slots: 28 31 void programInit(); 29 32 void slotClose(); 30 void closeEvent( QCloseEvent * e );31 33 void slotUserClickedCheckSysUpdates(); 32 34 void setTextAvailSysUpdates( QString &text ); -
pcbsd/trunk/SystemUpdater/UpdaterTray.cpp
r2600 r2780 1122 1122 1123 1123 QMessageBox::critical( this->contextMenu(), tr("Online Update"), tr("An error occured while downloading. Please check your connection or try again later."), QMessageBox::Ok ); 1124 UpdaterStatusDialog->hide(); 1124 if ( UpdaterStatusDialog->isShown() ) 1125 { 1126 UpdaterStatusDialog->hide(); 1127 } 1125 1128 1126 1129 programstatus = CHECK_FAILED; … … 1194 1197 { 1195 1198 // The updates are finished! 1199 // Bring back up the progress window, since it needs to processevents 1200 UpdaterStatusDialog->show(); 1196 1201 1197 1202 if ( requiresSysReboot == 1) … … 1199 1204 QMessageBox::information( this->contextMenu(), tr("Online Update"), tr("Updates successfully installed! Your system will need to reboot to finish."), QMessageBox::Ok); 1200 1205 } else { 1201 QMessageBox::information( this->contextMenu(), tr("Online Update"), tr("Updates successfully installed!"), QMessageBox::Ok ); 1202 } 1203 1204 UpdaterStatusDialog->hide(); 1206 QMessageBox::information( 0, tr("Online Update"), tr("Updates successfully installed!"), QMessageBox::Ok ); 1207 } 1208 1209 if ( UpdaterStatusDialog->isShown() ) 1210 { 1211 UpdaterStatusDialog->hide(); 1212 } 1205 1213 programstatus = CHECK_FAILED; 1206 1214 // Check for updates again now … … 1913 1921 // The updates are finished! 1914 1922 1923 // Bring back up the progress window, since it needs to processevents 1924 UpdaterStatusDialog->show(); 1925 1915 1926 1916 1927 QMessageBox::information( this->contextMenu(), tr("Online Update"), tr("PBI Upgrades finished!"), QMessageBox::Ok ); 1917 UpdaterStatusDialog->hide(); 1928 if ( UpdaterStatusDialog->isShown() ) 1929 { 1930 UpdaterStatusDialog->hide(); 1931 } 1918 1932 // Check for updates again now 1919 1933 programstatus = SYSTEM_UP2DATE; -
pcbsd/trunk/SystemUpdater/updaterDialog.cpp
r2600 r2780 14 14 #include <Q3ListView> 15 15 #include <Q3ListViewItemIterator> 16 #include <QtGui> 16 17 17 18 void updaterStatus::programInit() … … 30 31 31 32 32 void updaterStatus::closeEvent( QCloseEvent * e)33 void updaterStatus::closeEvent( QCloseEvent *event ) 33 34 { 35 event->ignore(); 34 36 slotPushClose(); 35 37 } -
pcbsd/trunk/SystemUpdater/updaterDialog.h
r2600 r2780 36 36 void slotJobUpdateSpeed(KJob*, unsigned long speed); 37 37 38 protected: 39 void closeEvent( QCloseEvent *event ); 38 40 39 41 private slots: 40 42 void slotPushClose(); 41 void closeEvent( QCloseEvent * e );42 43 43 44 private:
