all repos — mgba @ 06e6e1a27d75c5111ff81a2aeae9b3c204ca6ec1

mGBA Game Boy Advance Emulator

src/platform/qt/RotatedHeaderView.h (view raw)

 1/* Copyright (c) 2013-2019 Jeffrey Pfau
 2 *
 3 * This Source Code Form is subject to the terms of the Mozilla Public
 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 6#pragma once
 7
 8#include <QHeaderView>
 9
10namespace QGBA {
11
12class RotatedHeaderView : public QHeaderView {
13Q_OBJECT
14
15public:
16	RotatedHeaderView(Qt::Orientation orientation, QWidget* parent = nullptr);
17
18protected:
19	void paintSection(QPainter* painter, const QRect& rect, int logicalIndex) const override;
20	QSize sectionSizeFromContents(int logicalIndex) const override;
21};
22
23}