From f647d78463c1250ce9c99af664615fafccf5e959 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Tue, 7 Apr 2026 19:02:45 +0200 Subject: New upstream version 3.0.0 --- SampleDownloader/DirectoryDelegate.hpp | 60 +++++++++++++++++----------------- 1 file changed, 30 insertions(+), 30 deletions(-) mode change 100755 => 100644 SampleDownloader/DirectoryDelegate.hpp (limited to 'SampleDownloader/DirectoryDelegate.hpp') diff --git a/SampleDownloader/DirectoryDelegate.hpp b/SampleDownloader/DirectoryDelegate.hpp old mode 100755 new mode 100644 index 77efd981..65dfd001 --- a/SampleDownloader/DirectoryDelegate.hpp +++ b/SampleDownloader/DirectoryDelegate.hpp @@ -1,30 +1,30 @@ -#ifndef DIRECTORY_DELEGATE_HPP__ -#define DIRECTORY_DELEGATE_HPP__ - -#include - -class QObject; -class QStyleOptionVoew; -class QModelIndex; -class QPainter; - -// -// Styled item delegate that renders a progress bar in column #1 -// -// model column #1 DisplayRole is the progress in bytes -// model column #1 UserRole is the expected number of bytes -// -class DirectoryDelegate final - : public QStyledItemDelegate -{ -public: - explicit DirectoryDelegate (QObject * parent = nullptr) - : QStyledItemDelegate {parent} - { - } - - void paint (QPainter * painter, QStyleOptionViewItem const& option - , QModelIndex const& index) const override; -}; - -#endif +#ifndef DIRECTORY_DELEGATE_HPP__ +#define DIRECTORY_DELEGATE_HPP__ + +#include + +class QObject; +class QStyleOptionVoew; +class QModelIndex; +class QPainter; + +// +// Styled item delegate that renders a progress bar in column #1 +// +// model column #1 DisplayRole is the progress in bytes +// model column #1 UserRole is the expected number of bytes +// +class DirectoryDelegate final + : public QStyledItemDelegate +{ +public: + explicit DirectoryDelegate (QObject * parent = nullptr) + : QStyledItemDelegate {parent} + { + } + + void paint (QPainter * painter, QStyleOptionViewItem const& option + , QModelIndex const& index) const override; +}; + +#endif -- cgit v1.2.3