mirror of
				https://github.com/YACReader/yacreader
				synced 2025-10-31 08:14:29 -04:00 
			
		
		
		
	Add .gitattributes rules for text and binary handling
This commit is contained in:
		| @ -1,62 +1,62 @@ | ||||
| #include "search_single_comic.h" | ||||
|  | ||||
| #include "scraper_lineedit.h" | ||||
|  | ||||
| #include <QLabel> | ||||
| #include <QVBoxLayout> | ||||
| #include <QHBoxLayout> | ||||
|  | ||||
| SearchSingleComic::SearchSingleComic(QWidget * parent) | ||||
| 	:QWidget(parent) | ||||
| { | ||||
|  | ||||
| 	//QLabel * label = new QLabel(tr("Please provide some additional information. At least one field is needed.")); | ||||
| 	QLabel * label = new QLabel(tr("Please provide some additional information.")); | ||||
| 	label->setStyleSheet("QLabel {color:white; font-size:12px;font-family:Arial;}"); | ||||
|  | ||||
| 	//titleEdit = new ScraperLineEdit(tr("Title:")); | ||||
| 	//numberEdit = new ScraperLineEdit(tr("Number:")); | ||||
| 	volumeEdit = new ScraperLineEdit(tr("Series:")); | ||||
|  | ||||
| 	//numberEdit->setMaximumWidth(126); | ||||
|  | ||||
| 	QVBoxLayout * l = new QVBoxLayout; | ||||
| 	//QHBoxLayout * hl = new QHBoxLayout; | ||||
| 	//hl->addWidget(titleEdit); | ||||
| 	//hl->addWidget(numberEdit); | ||||
|  | ||||
| 	l->addSpacing(35); | ||||
| 	l->addWidget(label); | ||||
| 	//l->addLayout(hl); | ||||
| 	l->addWidget(volumeEdit); | ||||
| 	l->addStretch(); | ||||
|  | ||||
| 	l->setContentsMargins(0,0,0,0); | ||||
| 	setLayout(l); | ||||
| 	setContentsMargins(0,0,0,0); | ||||
| } | ||||
|  | ||||
| QString SearchSingleComic::getVolumeInfo() | ||||
| { | ||||
| 	return volumeEdit->text(); | ||||
| } | ||||
|  | ||||
| QString SearchSingleComic::getComicInfo() | ||||
| { | ||||
| 	//return titleEdit->text(); | ||||
| 	return ""; | ||||
| } | ||||
|  | ||||
| int SearchSingleComic::getComicNumber() | ||||
| { | ||||
| 	//QString numberText = numberEdit->text(); | ||||
| 	//if(numberText.isEmpty()) | ||||
| 	//	return -1; | ||||
| 	//return numberText.toInt(); | ||||
| 	return 0; | ||||
| } | ||||
|  | ||||
| void SearchSingleComic::clean() | ||||
| { | ||||
| 	volumeEdit->clear(); | ||||
| } | ||||
| #include "search_single_comic.h" | ||||
|  | ||||
| #include "scraper_lineedit.h" | ||||
|  | ||||
| #include <QLabel> | ||||
| #include <QVBoxLayout> | ||||
| #include <QHBoxLayout> | ||||
|  | ||||
| SearchSingleComic::SearchSingleComic(QWidget * parent) | ||||
| 	:QWidget(parent) | ||||
| { | ||||
|  | ||||
| 	//QLabel * label = new QLabel(tr("Please provide some additional information. At least one field is needed.")); | ||||
| 	QLabel * label = new QLabel(tr("Please provide some additional information.")); | ||||
| 	label->setStyleSheet("QLabel {color:white; font-size:12px;font-family:Arial;}"); | ||||
|  | ||||
| 	//titleEdit = new ScraperLineEdit(tr("Title:")); | ||||
| 	//numberEdit = new ScraperLineEdit(tr("Number:")); | ||||
| 	volumeEdit = new ScraperLineEdit(tr("Series:")); | ||||
|  | ||||
| 	//numberEdit->setMaximumWidth(126); | ||||
|  | ||||
| 	QVBoxLayout * l = new QVBoxLayout; | ||||
| 	//QHBoxLayout * hl = new QHBoxLayout; | ||||
| 	//hl->addWidget(titleEdit); | ||||
| 	//hl->addWidget(numberEdit); | ||||
|  | ||||
| 	l->addSpacing(35); | ||||
| 	l->addWidget(label); | ||||
| 	//l->addLayout(hl); | ||||
| 	l->addWidget(volumeEdit); | ||||
| 	l->addStretch(); | ||||
|  | ||||
| 	l->setContentsMargins(0,0,0,0); | ||||
| 	setLayout(l); | ||||
| 	setContentsMargins(0,0,0,0); | ||||
| } | ||||
|  | ||||
| QString SearchSingleComic::getVolumeInfo() | ||||
| { | ||||
| 	return volumeEdit->text(); | ||||
| } | ||||
|  | ||||
| QString SearchSingleComic::getComicInfo() | ||||
| { | ||||
| 	//return titleEdit->text(); | ||||
| 	return ""; | ||||
| } | ||||
|  | ||||
| int SearchSingleComic::getComicNumber() | ||||
| { | ||||
| 	//QString numberText = numberEdit->text(); | ||||
| 	//if(numberText.isEmpty()) | ||||
| 	//	return -1; | ||||
| 	//return numberText.toInt(); | ||||
| 	return 0; | ||||
| } | ||||
|  | ||||
| void SearchSingleComic::clean() | ||||
| { | ||||
| 	volumeEdit->clear(); | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user