Changeset 43936 in vbox
- Timestamp:
- Nov 22, 2012 12:11:11 PM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserView.h
r42802 r43936 26 26 class UIGChooserItem; 27 27 28 /* Graphics selectorview: */28 /* Graphics chooser-view: */ 29 29 class UIGChooserView : public QGraphicsView 30 30 { … … 33 33 signals: 34 34 35 /* Notifier s: Resize stuff: */35 /* Notifier: Resize stuff: */ 36 36 void sigResized(); 37 37 … … 43 43 private slots: 44 44 45 /* Handler: Root-item resizestuff: */45 /* Handler: Root-item stuff: */ 46 46 void sltHandleRootItemResized(const QSizeF &size, int iMinimumWidth); 47 47 48 /* Handler: Focus item change: */48 /* Handler: Focus-item stuff: */ 49 49 void sltFocusChanged(UIGChooserItem *pFocusItem); 50 50 51 51 private: 52 52 53 /* Event handler: Resize-event: */53 /* Handler: Resize-event stuff: */ 54 54 void resizeEvent(QResizeEvent *pEvent); 55 55 56 /* Helper s: */56 /* Helper: Update stuff: */ 57 57 void updateSceneRect(const QSizeF &sizeHint = QSizeF()); 58 58 }; -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetails.cpp
r43935 r43936 82 82 /* Setup details-view: */ 83 83 m_pDetailsView = new UIGDetailsView(this); 84 m_pDetailsView->setFrameShape(QFrame::NoFrame);85 m_pDetailsView->setFrameShadow(QFrame::Plain);86 84 m_pDetailsView->setScene(m_pDetailsModel->scene()); 87 85 m_pDetailsView->show(); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsView.cpp
r43926 r43936 29 29 : QGraphicsView(pParent) 30 30 { 31 /* Setup palette: */ 32 QPalette pal = qApp->palette(); 33 pal.setColor(QPalette::Base, pal.color(QPalette::Active, QPalette::Window)); 34 setPalette(pal); 31 /* Prepare palette: */ 32 preparePalette(); 35 33 36 /* Scrollbars policy: */ 34 /* Setup frame: */ 35 setFrameShape(QFrame::NoFrame); 36 setFrameShadow(QFrame::Plain); 37 38 /* Setup scroll-bars policy: */ 37 39 setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); 38 40 … … 49 51 setMinimumWidth(2 * frameWidth() + iMinimumWidth + 50 52 verticalScrollBar()->sizeHint().width()); 53 } 54 55 void UIGDetailsView::preparePalette() 56 { 57 /* Setup palette: */ 58 QPalette pal = qApp->palette(); 59 pal.setColor(QPalette::Base, pal.color(QPalette::Active, QPalette::Window)); 60 setPalette(pal); 51 61 } 52 62 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsView.h
r42529 r43936 23 23 #include <QGraphicsView> 24 24 25 /* Graphics details 25 /* Graphics details-view: */ 26 26 class UIGDetailsView : public QGraphicsView 27 27 { … … 30 30 signals: 31 31 32 /* Notifier s: Resize stuff: */32 /* Notifier: Resize stuff: */ 33 33 void sigResized(); 34 34 … … 40 40 private slots: 41 41 42 /* Handler s: Resize stuff: */42 /* Handler: Resize stuff: */ 43 43 void sltHandleRootItemResized(const QSizeF &size, int iMinimumWidth); 44 44 45 45 private: 46 46 47 /* Event handlers: Resize stuff: */ 47 /* Helper: Prepare stuff: */ 48 void preparePalette(); 49 50 /* Handler: Resize-event stuff: */ 48 51 void resizeEvent(QResizeEvent *pEvent); 49 52 50 /* Helper s: Update stuff: */53 /* Helper: Update stuff: */ 51 54 void updateSceneRect(const QSizeF &sizeHint = QSizeF()); 52 55 };
Note:
See TracChangeset
for help on using the changeset viewer.