Changeset 1268 for trunk/source/interfaces/basic/src
- Timestamp:
- May 26, 2010, 3:58:08 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/interfaces/basic/src/G4UIQt.cc
r1267 r1268 2012 2012 ) 2013 2013 { 2014 #if QT_VERSION < 0x040000 2015 if (commandPath.find("/") == 0) { 2016 commandPath = commandPath.right(commandPath.length()-1); 2017 #else 2014 2018 if (commandPath.indexOf("/") == 0) { 2015 #if QT_VERSION < 0x0400002016 commandPath = commandPath.right(commandPath.length()-1);2017 #else2018 2019 commandPath = commandPath.right(commandPath.size()-1); 2019 2020 #endif … … 2082 2083 void G4UIQt::TabCloseCallback(int a){ 2083 2084 #if QT_VERSION < 0x040000 2084 QWidget* temp = fTabWidget-> item(a);2085 fTabWidget->remove Item(a);2085 QWidget* temp = fTabWidget->page(a); 2086 fTabWidget->removePage (a); 2086 2087 #else 2087 2088 QWidget* temp = fTabWidget->widget(a); … … 2106 2107 2107 2108 #if QT_VERSION < 0x040000 2108 if (fToolBox-> item(a) == fHelpTBWidget) {2109 if (fToolBox->page(a) == fHelpTBWidget) { 2109 2110 #else 2110 2111 if (fToolBox->widget(a) == fHelpTBWidget) { … … 2121 2122 2122 2123 #if QT_VERSION < 0x040000 2123 if (current Item()) {2124 if (currentPage()) { 2124 2125 #else 2125 2126 if (currentWidget()) { 2126 2127 #endif 2127 2128 2128 #ifdef G4DEBUG_INTERFACES_BASIC2129 printf("G4QTabWidget::paintEvent repaint type : %d -- rect %d %d region:%d %d page : %d %d ________________________ i= %d\n", event->type(),event->rect().height(),event->rect().width(),event->region().boundingRect().width(),event->region().boundingRect().height(),currentWidget()->width(),currentWidget()->height(),currentIndex());2130 #endif2131 2129 if ( isTabSelected()) { 2132 2130 2133 2131 #if QT_VERSION < 0x040000 2134 QApplication::sendPostedEvents () ;2135 #else 2136 QCoreApplication::sendPostedEvents () ;2132 QApplication::sendPostedEvents () ; 2133 #else 2134 QCoreApplication::sendPostedEvents () ; 2137 2135 #endif 2138 2136
Note: See TracChangeset
for help on using the changeset viewer.