File: verticaltext.h

package info (click to toggle)
smplayer 18.10.0~ds0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 34,884 kB
  • sloc: cpp: 48,881; ansic: 16,654; makefile: 298; sh: 43
file content (27 lines) | stat: -rw-r--r-- 532 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* Taken from KMix */
/* Copyright (C) 2003-2004 Christian Esken <esken@kde.org> */


#ifndef VerticalText_h
#define VerticalText_h

#include <QWidget>
#include <QPaintEvent>

class VerticalText : public QWidget
{
public:
    VerticalText(QWidget * parent, Qt::WindowFlags f = 0);
    ~VerticalText();

	void setText(QString s) { _label = s; };
	QString text() { return _label; };
    QSize sizeHint() const;
    QSizePolicy sizePolicy () const;
	
protected:
    void paintEvent ( QPaintEvent * event );
	QString _label;
};

#endif