Changeset View
Changeset View
Standalone View
Standalone View
krusader/DiskUsage/dulines.cpp
Show All 13 Lines | |||||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||
15 | * GNU General Public License for more details. * | 15 | * GNU General Public License for more details. * | ||
16 | * * | 16 | * * | ||
17 | * You should have received a copy of the GNU General Public License * | 17 | * You should have received a copy of the GNU General Public License * | ||
18 | * along with Krusader. If not, see [http://www.gnu.org/licenses/]. * | 18 | * along with Krusader. If not, see [http://www.gnu.org/licenses/]. * | ||
19 | *****************************************************************************/ | 19 | *****************************************************************************/ | ||
20 | 20 | | |||
21 | #include "dulines.h" | 21 | #include "dulines.h" | ||
22 | #include "../kicons.h" | 22 | | ||
23 | #include "../icon.h" | ||||
23 | #include "../krglobal.h" | 24 | #include "../krglobal.h" | ||
24 | #include "../FileSystem/krpermhandler.h" | 25 | #include "../FileSystem/krpermhandler.h" | ||
25 | 26 | | |||
26 | // QtCore | 27 | // QtCore | ||
27 | #include <QTimer> | 28 | #include <QTimer> | ||
28 | // QtGui | 29 | // QtGui | ||
29 | #include <QMouseEvent> | 30 | #include <QMouseEvent> | ||
30 | #include <QPixmap> | 31 | #include <QPixmap> | ||
▲ Show 20 Lines • Show All 230 Lines • ▼ Show 20 Line(s) | |||||
261 | { | 262 | { | ||
262 | clear(); | 263 | clear(); | ||
263 | 264 | | |||
264 | QTreeWidgetItem * lastItem = 0; | 265 | QTreeWidgetItem * lastItem = 0; | ||
265 | 266 | | |||
266 | if (!(dirEntry->parent() == 0)) { | 267 | if (!(dirEntry->parent() == 0)) { | ||
267 | lastItem = new QTreeWidgetItem(this); | 268 | lastItem = new QTreeWidgetItem(this); | ||
268 | lastItem->setText(0, ".."); | 269 | lastItem->setText(0, ".."); | ||
269 | lastItem->setIcon(0, FL_LOADICON("go-up")); | 270 | lastItem->setIcon(0, Icon("go-up")); | ||
270 | lastItem->setFlags(lastItem->flags() & (~Qt::ItemIsSelectable)); | 271 | lastItem->setFlags(lastItem->flags() & (~Qt::ItemIsSelectable)); | ||
271 | } | 272 | } | ||
272 | 273 | | |||
273 | int maxPercent = -1; | 274 | int maxPercent = -1; | ||
274 | for (Iterator<File> it = dirEntry->iterator(); it != dirEntry->end(); ++it) { | 275 | for (Iterator<File> it = dirEntry->iterator(); it != dirEntry->end(); ++it) { | ||
275 | File *item = *it; | 276 | File *item = *it; | ||
276 | if (!item->isExcluded() && item->intPercent() > maxPercent) | 277 | if (!item->isExcluded() && item->intPercent() > maxPercent) | ||
277 | maxPercent = item->intPercent(); | 278 | maxPercent = item->intPercent(); | ||
▲ Show 20 Lines • Show All 257 Lines • Show Last 20 Lines |