Changeset View
Changeset View
Standalone View
Standalone View
ui/side_reviews.cpp
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | 57 | if ( !hasAnnotations ) { | |||
---|---|---|---|---|---|
63 | document.setHtml( i18n( "<div align=center><h3>No annotations</h3>" | 63 | document.setHtml( i18n( "<div align=center><h3>No annotations</h3>" | ||
64 | "To create new annotations press F6 or select <i>Tools -> Review</i>" | 64 | "To create new annotations press F6 or select <i>Tools -> Review</i>" | ||
65 | " from the menu.</div>" ) ); | 65 | " from the menu.</div>" ) ); | ||
66 | document.setTextWidth( width() - 50 ); | 66 | document.setTextWidth( width() - 50 ); | ||
67 | 67 | | |||
68 | const uint w = document.size().width() + 20; | 68 | const uint w = document.size().width() + 20; | ||
69 | const uint h = document.size().height() + 20; | 69 | const uint h = document.size().height() + 20; | ||
70 | 70 | | |||
71 | p.setBrush( palette().background() ); | 71 | p.setBrush( palette().window() ); | ||
72 | p.translate( 0.5, 0.5 ); | 72 | p.translate( 0.5, 0.5 ); | ||
73 | p.drawRoundRect( 15, 15, w, h, (8*200)/w, (8*200)/h ); | 73 | p.drawRoundRect( 15, 15, w, h, (8*200)/w, (8*200)/h ); | ||
74 | p.translate( 20, 20 ); | 74 | p.translate( 20, 20 ); | ||
75 | document.drawContents( &p ); | 75 | document.drawContents( &p ); | ||
76 | 76 | | |||
77 | } else { | 77 | } else { | ||
78 | QTreeView::paintEvent( event ); | 78 | QTreeView::paintEvent( event ); | ||
79 | } | 79 | } | ||
▲ Show 20 Lines • Show All 230 Lines • Show Last 20 Lines |