diff options
| author | tony mancill <tmancill@debian.org> | 2026-04-12 08:46:47 -0700 |
|---|---|---|
| committer | tony mancill <tmancill@debian.org> | 2026-04-12 08:46:47 -0700 |
| commit | cd2dad3bc7ae0ee0a18b7b20a945009362ec3851 (patch) | |
| tree | 5a622ec4193e9bc899f6499f936848a661be29cb /SampleDownloader/DirectoryDelegate.hpp | |
| parent | 558c0b9d6ecf70c5222e2069ece1fea3656c75d7 (diff) | |
| parent | 291b3817bf0c7a742e9e17d42c94fc8c9530e40d (diff) | |
Merge branch 'debian/latest' into debian/trixie-backports
Diffstat (limited to 'SampleDownloader/DirectoryDelegate.hpp')
| -rw-r--r--[-rwxr-xr-x] | SampleDownloader/DirectoryDelegate.hpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/SampleDownloader/DirectoryDelegate.hpp b/SampleDownloader/DirectoryDelegate.hpp index 77efd981..65dfd001 100755..100644 --- a/SampleDownloader/DirectoryDelegate.hpp +++ b/SampleDownloader/DirectoryDelegate.hpp @@ -1,30 +1,30 @@ -#ifndef DIRECTORY_DELEGATE_HPP__
-#define DIRECTORY_DELEGATE_HPP__
-
-#include <QStyledItemDelegate>
-
-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 <QStyledItemDelegate> + +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 |
