mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 22:05:25 +00:00
c73d9a0678
* Add TabWidget to NewFileDialog * Project loading from NewFileDialog * Projects dir in NewFileDialog * Add SaveProjectDialog * Make SaveProjectDialog work, refactor project saving and Notepad * Add shortcut for Save * Fix notes loading * Sort projects in NewFileDialog * Implement selecting projects dir in SaveProjectDialog * Fix QAbstractButton include
30 lines
783 B
C++
30 lines
783 B
C++
#ifndef QHELPERS_H
|
|
#define QHELPERS_H
|
|
|
|
#include <QString>
|
|
|
|
class QPlainTextEdit;
|
|
class QTextEdit;
|
|
class QString;
|
|
class QTreeWidget;
|
|
class QTreeWidgetItem;
|
|
class QAbstractItemView;
|
|
class QAbstractButton;
|
|
|
|
namespace qhelpers
|
|
{
|
|
void normalizeFont(QPlainTextEdit *edit);
|
|
void normalizeEditFont(QTextEdit *edit);
|
|
|
|
void adjustColumns(QTreeWidget *tw, int columnCount = 0, int padding = 0);
|
|
|
|
QTreeWidgetItem *appendRow(QTreeWidget *tw, const QString &str, const QString &str2 = QString(),
|
|
const QString &str3 = QString(), const QString &str4 = QString(), const QString &str5 = QString());
|
|
|
|
void setVerticalScrollMode(QAbstractItemView *tw);
|
|
|
|
void setCheckedWithoutSignals(QAbstractButton *button, bool checked);
|
|
}
|
|
|
|
#endif // HELPERS_H
|