Stylized the page navigator widget

preferencesAboutTextFull
shibakaneki 13 years ago
parent 974926e2af
commit 490b1be9fc
  1. 2
      resources/style.qss
  2. 4
      src/gui/UBPageNavigationWidget.cpp
  3. BIN
      src/tools/Mask_specification.doc

@ -1,4 +1,4 @@
QWidget#DockPaletteWidgetBox QWidget#DockPaletteWidgetBox, QWidget#documentNavigator
{ {
background: #EEEEEE; background: #EEEEEE;
border-radius: 10px; border-radius: 10px;

@ -31,17 +31,17 @@ UBPageNavigationWidget::UBPageNavigationWidget(QWidget *parent, const char *name
{ {
setObjectName(name); setObjectName(name);
mName = "PageNavigator"; mName = "PageNavigator";
setAttribute(Qt::WA_StyledBackground, true);
setStyleSheet(UBApplication::globalStyleSheet());
mIconToRight = QPixmap(":images/pages_open.png"); mIconToRight = QPixmap(":images/pages_open.png");
mIconToLeft = QPixmap(":images/pages_close.png"); mIconToLeft = QPixmap(":images/pages_close.png");
// Build the gui // Build the gui
mLayout = new QVBoxLayout(this); mLayout = new QVBoxLayout(this);
//mLayout->setContentsMargins(customMargin(), customMargin(), 2*border() + customMargin(), customMargin());
setLayout(mLayout); setLayout(mLayout);
mNavigator = new UBDocumentNavigator(this); mNavigator = new UBDocumentNavigator(this);
mNavigator->setStyleSheet(QString("background-color : transparent;"));
mLayout->addWidget(mNavigator, 1); mLayout->addWidget(mNavigator, 1);
mHLayout = new QHBoxLayout(); mHLayout = new QHBoxLayout();

Binary file not shown.
Loading…
Cancel
Save