-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtablewidget.h
More file actions
41 lines (35 loc) · 819 Bytes
/
tablewidget.h
File metadata and controls
41 lines (35 loc) · 819 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef TABLEWIDGET_H
#define TABLEWIDGET_H
#include <QWidget>
#include <QDesktopWidget>
#include <QDebug>
#include <QPainter>
#include <QTableWidget>
#include <QVBoxLayout>
#include <QGroupBox>
#include <QFormLayout>
#include <QHeaderView>
#include "rss.h"
class TableWidget : public QWidget
{
Q_OBJECT
QDesktopWidget *desktopWidget;
QRect screenRect;
int space, startPosx, startPosy, width, height;
public:
explicit TableWidget(QWidget *parent = 0);
static QRegion roundedRect(const QRect& rect, int r);
Rss *rss;
protected:
void paintEvent(QPaintEvent*);
signals:
public slots:
private:
QTableWidget *tableWidget;
QTableWidgetItem *item0, *item1, *item2;
QFont font;
QVBoxLayout *mainLayout;
QGroupBox *formGroupBox;
QFormLayout *layout;
};
#endif // TABLEWIDGET_H