mirror of
https://github.com/YACReader/yacreader
synced 2026-01-13 03:23:07 -05:00
a?adido t?tulo a la toolbar en windows y linux
This commit is contained in:
@ -13,7 +13,7 @@ YACReaderMainToolBar::YACReaderMainToolBar(QWidget *parent) :
|
||||
{
|
||||
mainLayout = new QHBoxLayout;
|
||||
|
||||
currentFolder = new QLabel(tr("Root"),this);
|
||||
currentFolder = new QLabel(this);
|
||||
currentFolder->setAlignment(Qt::AlignCenter);
|
||||
currentFolder->setStyleSheet(" QLabel {color:#404040; font-size:22px; font-weight:bold;}");
|
||||
|
||||
@ -110,3 +110,11 @@ void YACReaderMainToolBar::addWideDivider()
|
||||
addDivider();
|
||||
mainLayout->addSpacing(3);
|
||||
}
|
||||
|
||||
void YACReaderMainToolBar::setCurrentFolderName(const QString & name)
|
||||
{
|
||||
currentFolder->setText(name);
|
||||
currentFolder->adjustSize();
|
||||
currentFolder->move((width()-currentFolder->width())/2,(height()-currentFolder->height())/2);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user