diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-02-04 00:53:05 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-02-04 00:53:05 +0100 |
commit | b82eb5873e99dce6aec735b08929e3add52e53e7 (patch) | |
tree | f8b60861bc5006cc989e65b87b22498f2b1d4412 /depends/groupview/InstanceDelegate.h | |
parent | a17caba2c9c2aa5960581db01e4b66472a9c019c (diff) | |
parent | 946d49675cb4725c31ab49a51f3bcae302f89a19 (diff) | |
download | MultiMC-b82eb5873e99dce6aec735b08929e3add52e53e7.tar MultiMC-b82eb5873e99dce6aec735b08929e3add52e53e7.tar.gz MultiMC-b82eb5873e99dce6aec735b08929e3add52e53e7.tar.lz MultiMC-b82eb5873e99dce6aec735b08929e3add52e53e7.tar.xz MultiMC-b82eb5873e99dce6aec735b08929e3add52e53e7.zip |
Add 'depends/groupview/' from commit '946d49675cb4725c31ab49a51f3bcae302f89a19'
git-subtree-dir: depends/groupview
git-subtree-mainline: a17caba2c9c2aa5960581db01e4b66472a9c019c
git-subtree-split: 946d49675cb4725c31ab49a51f3bcae302f89a19
Diffstat (limited to 'depends/groupview/InstanceDelegate.h')
-rw-r--r-- | depends/groupview/InstanceDelegate.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/depends/groupview/InstanceDelegate.h b/depends/groupview/InstanceDelegate.h new file mode 100644 index 00000000..de2f429b --- /dev/null +++ b/depends/groupview/InstanceDelegate.h @@ -0,0 +1,29 @@ +/* Copyright 2013 MultiMC Contributors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#pragma once + +#include <QStyledItemDelegate> + +class ListViewDelegate : public QStyledItemDelegate +{ +public: + explicit ListViewDelegate(QObject *parent = 0); + +protected: + void paint(QPainter *painter, const QStyleOptionViewItem &option, + const QModelIndex &index) const; + QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const; +}; |