mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Replace indent to 4 spaces
This commit is contained in:
parent
c1e2ddc843
commit
496f843016
3 changed files with 141 additions and 140 deletions
|
@ -42,8 +42,8 @@
|
||||||
|
|
||||||
SearchTab::SearchTab(SearchEngine *parent) : QWidget(), parent(parent)
|
SearchTab::SearchTab(SearchEngine *parent) : QWidget(), parent(parent)
|
||||||
{
|
{
|
||||||
box=new QVBoxLayout();
|
box = new QVBoxLayout();
|
||||||
results_lbl=new QLabel();
|
results_lbl = new QLabel();
|
||||||
resultsBrowser = new QTreeView();
|
resultsBrowser = new QTreeView();
|
||||||
resultsBrowser->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
resultsBrowser->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||||
box->addWidget(results_lbl);
|
box->addWidget(results_lbl);
|
||||||
|
@ -109,13 +109,16 @@ bool SearchTab::loadColWidthResultsList() {
|
||||||
QString line = Preferences::instance()->getSearchColsWidth();
|
QString line = Preferences::instance()->getSearchColsWidth();
|
||||||
if (line.isEmpty())
|
if (line.isEmpty())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
QStringList width_list = line.split(' ');
|
QStringList width_list = line.split(' ');
|
||||||
if (width_list.size() > SearchListModel->columnCount())
|
if (width_list.size() > SearchListModel->columnCount())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
unsigned int listSize = width_list.size();
|
unsigned int listSize = width_list.size();
|
||||||
for (unsigned int i=0; i<listSize; ++i) {
|
for (unsigned int i=0; i<listSize; ++i) {
|
||||||
resultsBrowser->header()->resizeSection(i, width_list.at(i).toInt());
|
resultsBrowser->header()->resizeSection(i, width_list.at(i).toInt());
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -71,8 +71,6 @@ public:
|
||||||
QTreeView * getCurrentTreeView();
|
QTreeView * getCurrentTreeView();
|
||||||
void setRowColor(int row, QString color);
|
void setRowColor(int row, QString color);
|
||||||
QHeaderView* header() const;
|
QHeaderView* header() const;
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue