mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
merge
This commit is contained in:
commit
3a1932e8f4
@ -50,6 +50,8 @@ GoToFlowToolBar::GoToFlowToolBar(QWidget * parent)
|
|||||||
edit->setStyleSheet("background-image: url(:/images/imgEdit.png); width: 100%; height:100%; background-repeat: none; border: none; padding: 3px; color: white;");
|
edit->setStyleSheet("background-image: url(:/images/imgEdit.png); width: 100%; height:100%; background-repeat: none; border: none; padding: 3px; color: white;");
|
||||||
QPixmap p(":/images/imgEdit.png");
|
QPixmap p(":/images/imgEdit.png");
|
||||||
edit->setFixedSize(54,50);
|
edit->setFixedSize(54,50);
|
||||||
|
edit->setAttribute(Qt::WA_MacShowFocusRect,false);
|
||||||
|
edit->setAttribute(Qt::WA_LayoutUsesWidgetRect,true);
|
||||||
//edit->resize(QSize(54,50));
|
//edit->resize(QSize(54,50));
|
||||||
edit->setSizePolicy(QSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed));
|
edit->setSizePolicy(QSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed));
|
||||||
edit->setAutoFillBackground(false);
|
edit->setAutoFillBackground(false);
|
||||||
@ -62,6 +64,7 @@ GoToFlowToolBar::GoToFlowToolBar(QWidget * parent)
|
|||||||
//centerButton->setIcon(QIcon(":/images/center.png"));
|
//centerButton->setIcon(QIcon(":/images/center.png"));
|
||||||
centerButton->setStyleSheet(centerButtonCSS);
|
centerButton->setStyleSheet(centerButtonCSS);
|
||||||
centerButton->setFixedSize(26,50);
|
centerButton->setFixedSize(26,50);
|
||||||
|
centerButton->setAttribute(Qt::WA_LayoutUsesWidgetRect,true);
|
||||||
connect(centerButton,SIGNAL(clicked()),this,SLOT(centerSlide()));
|
connect(centerButton,SIGNAL(clicked()),this,SLOT(centerSlide()));
|
||||||
bottom->addWidget(centerButton);
|
bottom->addWidget(centerButton);
|
||||||
|
|
||||||
@ -72,6 +75,8 @@ GoToFlowToolBar::GoToFlowToolBar(QWidget * parent)
|
|||||||
//goToButton->setIcon(QIcon(":/images/goto.png"));
|
//goToButton->setIcon(QIcon(":/images/goto.png"));
|
||||||
goToButton->setStyleSheet(goToButtonCSS);
|
goToButton->setStyleSheet(goToButtonCSS);
|
||||||
goToButton->setFixedSize(32,50);
|
goToButton->setFixedSize(32,50);
|
||||||
|
goToButton->setAttribute(Qt::WA_LayoutUsesWidgetRect,true);
|
||||||
|
|
||||||
connect(goToButton,SIGNAL(clicked()),this,SLOT(goTo()));
|
connect(goToButton,SIGNAL(clicked()),this,SLOT(goTo()));
|
||||||
bottom->addWidget(goToButton);
|
bottom->addWidget(goToButton);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user