diff --git a/folderdiff.cpp b/folderdiff.cpp index 7c253a3..badddf4 100644 --- a/folderdiff.cpp +++ b/folderdiff.cpp @@ -230,12 +230,14 @@ void FolderDiff::on_btndiff_clicked() } while(addline > 0) { - new QTreeWidgetItem(ui->treeWidget1, QStringList("")); + QTreeWidgetItem *item = new QTreeWidgetItem(ui->treeWidget1, QStringList("")); + setItemIcon(item, filetype); addline--; } while(delline > 0) { - new QTreeWidgetItem(ui->treeWidget2, QStringList("")); + QTreeWidgetItem *item = new QTreeWidgetItem(ui->treeWidget2, QStringList("")); + setItemIcon(item, filetype); delline--; } if(j == it.value() && j != filelist2.length()) diff --git a/mainwindow.h b/mainwindow.h index 2357b17..2cd9ef4 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -23,7 +23,7 @@ private slots: private: Ui::MainWindow *ui; int tabnum = 1; - QString version = "0.8"; + QString version = "0.8.1"; QString author = "Yuer"; };