mirror of
https://github.com/YACReader/yacreader
synced 2025-07-19 21:44:43 -04:00
width slider terminado...
This commit is contained in:
@ -1205,67 +1205,4 @@ YACReaderFlowConfigWidget::YACReaderFlowConfigWidget(QWidget * parent )
|
||||
layout->setContentsMargins(0,0,0,0);
|
||||
|
||||
setLayout(layout);
|
||||
}
|
||||
|
||||
|
||||
YACReaderSliderAction::YACReaderSliderAction (QWidget * parent)
|
||||
:QWidgetAction (0) {
|
||||
|
||||
//QWidget* pWidget = new QWidget (0);
|
||||
|
||||
//QLabel* imgLabel = new QLabel(pWidget);
|
||||
//QPixmap p(":/images/numPagesLabel.png");
|
||||
//imgLabel->resize(p.size());
|
||||
//imgLabel->setPixmap(p);
|
||||
|
||||
//QLabel * textLabel = new QLabel(pWidget);
|
||||
//textLabel->setAlignment(Qt::AlignVCenter|Qt::AlignHCenter);
|
||||
//textLabel->setStyleSheet("QLabel { color : white; }");
|
||||
//textLabel->setText("hola");
|
||||
////informationLabel->setAutoFillBackground(true);
|
||||
////textLabel->setFont(QFont("courier new bold", 12));
|
||||
////textLabel->resize(100,25);
|
||||
|
||||
//textLabel->setGeometry(imgLabel->geometry());
|
||||
|
||||
//setDefaultWidget(pWidget);
|
||||
|
||||
QWidget* pWidget = new QWidget (NULL);
|
||||
QHBoxLayout* pLayout = new QHBoxLayout();
|
||||
QLabel * pLabel = new QLabel ("100%");
|
||||
pLabel->setStyleSheet("QLabel { color : white; }");
|
||||
pLayout->addWidget (pLabel);
|
||||
QSlider * slider = new QSlider(NULL);
|
||||
slider->setOrientation(Qt::Horizontal);
|
||||
pLayout->addWidget (slider);
|
||||
//"background-image: url(:/images/sliderGround.png); width: 100%; height:100%; background-repeat: none; border: none; padding: 0px; color: white;"
|
||||
//"QSlider::sub-page:horizontal {background-image: url(:/images/sliderSubPage.png); background-repeat:repeat-x;}"
|
||||
QString sliderCSS = //"QSlider {background-image: url(:/images/sliderGround.png); width: 100%; height:100%; background-repeat: none; border: none; padding: 0px;} "
|
||||
|
||||
"QSlider::sub-page:horizontal {background-image: url(:/images/sliderSubPage.png); border: 0px; margin-left: 18px;}"
|
||||
"QSlider::add-page:horizontal {background-image: url(:/images/sliderAddPage.png); border: 0px; margin-right: 18px;}"
|
||||
"QSlider::handle:horizontal {image: url(:/images/sliderHandle.png); width: 100px;height:45px;padding:-20px; margin-left:-10px; margin-right:-10px; }"
|
||||
"QSlider::groove:horizontal {border-image:url(:/images/sliderGround.png); border-left:-10px; border-right:-10px;}"
|
||||
;
|
||||
|
||||
//"QSlider::handle {background-image: url(:/images/sliderHandle.png); border: 0px; width: 31px; height:45px; margin:0px; padding:0px;}"
|
||||
slider->setStyleSheet(sliderCSS);
|
||||
slider->setFixedSize(214,45);
|
||||
|
||||
QLabel* imgLabel = new QLabel(pWidget);
|
||||
QPixmap p(":/images/sliderBackground.png");
|
||||
imgLabel->resize(p.size());
|
||||
imgLabel->setPixmap(p);
|
||||
|
||||
pLayout->setMargin(0);
|
||||
pLayout->setSpacing(0);
|
||||
|
||||
pWidget->setLayout (pLayout);
|
||||
pWidget->setAutoFillBackground(false);
|
||||
|
||||
//pWidget->setMinimumSize(250,45);
|
||||
|
||||
setDefaultWidget(pWidget);
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user