forked from wtr9987/gvtree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmimetable.h
44 lines (35 loc) · 1.32 KB
/
mimetable.h
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
42
43
44
/* --------------------------------------------- */
/* */
/* Copyright (C) 2021 Wolfgang Trummer */
/* Contact: [email protected] */
/* */
/* gvtree V1.8-0 */
/* */
/* git version tree browser */
/* */
/* 28. December 2021 */
/* */
/* This program is licensed under */
/* GNU GENERAL PUBLIC LICENSE */
/* Version 3, 29 June 2007 */
/* */
/* --------------------------------------------- */
#ifndef __MIMETABLE_H__
#define __MIMETABLE_H__
#include <QTableWidget>
#include <QSettings>
#include <QMap>
#include <QString>
#include <QHeaderView>
class MimeTable : public QTableWidget
{
Q_OBJECT
public:
MimeTable(QWidget* _parent = NULL);
void fromSettings();
void insert(const QString& _mimetype, const QString& _diff, const QString& _edit);
bool get(const QString& _mimetype, QString& _diff, QString& _edit);
public slots:
void itemChanged(QTableWidgetItem* _item);
};
#endif