mirror of
				https://github.com/YACReader/yacreader
				synced 2025-11-03 16:54:39 -05:00 
			
		
		
		
	Format code using clang-format
This commit is contained in:
		@ -4,50 +4,46 @@
 | 
			
		||||
#include <QHBoxLayout>
 | 
			
		||||
#include <QVBoxLayout>
 | 
			
		||||
 | 
			
		||||
TitleHeader::TitleHeader(QWidget * parent )
 | 
			
		||||
	:QWidget(parent)
 | 
			
		||||
TitleHeader::TitleHeader(QWidget *parent)
 | 
			
		||||
    : QWidget(parent)
 | 
			
		||||
{
 | 
			
		||||
	mainTitleLabel = new QLabel();
 | 
			
		||||
	subTitleLabel = new QLabel();
 | 
			
		||||
    mainTitleLabel = new QLabel();
 | 
			
		||||
    subTitleLabel = new QLabel();
 | 
			
		||||
 | 
			
		||||
	mainTitleLabel->setStyleSheet("QLabel {color:white; font-size:18px;font-family:Arial;}");
 | 
			
		||||
	subTitleLabel->setStyleSheet("QLabel {color:white; font-size:12px;font-family:Arial;}");
 | 
			
		||||
    mainTitleLabel->setStyleSheet("QLabel {color:white; font-size:18px;font-family:Arial;}");
 | 
			
		||||
    subTitleLabel->setStyleSheet("QLabel {color:white; font-size:12px;font-family:Arial;}");
 | 
			
		||||
 | 
			
		||||
	QHBoxLayout * titleLayout = new QHBoxLayout;
 | 
			
		||||
	QVBoxLayout * titleLabelsLayout = new QVBoxLayout;
 | 
			
		||||
    QHBoxLayout *titleLayout = new QHBoxLayout;
 | 
			
		||||
    QVBoxLayout *titleLabelsLayout = new QVBoxLayout;
 | 
			
		||||
 | 
			
		||||
	titleLabelsLayout->addWidget(mainTitleLabel);
 | 
			
		||||
	titleLabelsLayout->addWidget(subTitleLabel);
 | 
			
		||||
	titleLabelsLayout->setSpacing(0);
 | 
			
		||||
    titleLabelsLayout->addWidget(mainTitleLabel);
 | 
			
		||||
    titleLabelsLayout->addWidget(subTitleLabel);
 | 
			
		||||
    titleLabelsLayout->setSpacing(0);
 | 
			
		||||
 | 
			
		||||
	titleLayout->addLayout(titleLabelsLayout);
 | 
			
		||||
	titleLayout->setContentsMargins(0,0,0,0);
 | 
			
		||||
    titleLayout->addLayout(titleLabelsLayout);
 | 
			
		||||
    titleLayout->setContentsMargins(0, 0, 0, 0);
 | 
			
		||||
 | 
			
		||||
	setLayout(titleLayout);
 | 
			
		||||
    setLayout(titleLayout);
 | 
			
		||||
 | 
			
		||||
	setContentsMargins(0,0,0,0);
 | 
			
		||||
    setContentsMargins(0, 0, 0, 0);
 | 
			
		||||
 | 
			
		||||
	setTitle(tr("SEARCH"));
 | 
			
		||||
    setTitle(tr("SEARCH"));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void TitleHeader::setTitle(const QString & title)
 | 
			
		||||
void TitleHeader::setTitle(const QString &title)
 | 
			
		||||
{
 | 
			
		||||
	mainTitleLabel->setText(title);
 | 
			
		||||
    mainTitleLabel->setText(title);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void TitleHeader::setSubTitle(const QString & title)
 | 
			
		||||
void TitleHeader::setSubTitle(const QString &title)
 | 
			
		||||
{
 | 
			
		||||
	subTitleLabel->setText(title);
 | 
			
		||||
    subTitleLabel->setText(title);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void TitleHeader::showButtons(bool show)
 | 
			
		||||
{
 | 
			
		||||
	if(show)
 | 
			
		||||
	{
 | 
			
		||||
    if (show) {
 | 
			
		||||
 | 
			
		||||
	}
 | 
			
		||||
	else
 | 
			
		||||
	{
 | 
			
		||||
 | 
			
		||||
	}
 | 
			
		||||
    } else {
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user