|
|
@ -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(); |
|
|
|