cutter/src/helpers.h
C. Balles 44b72a1826 Custom fonts registration and usage (#50)
* Register custom fonts once

The QHelpers functions registered the fonts on every call, which is not
necessary.

- added anonymous namespace for internal linkage
- added helper function for font registration

* Move helper functions from class to namespace

Fixes a possible memleak, because up until now the QHelpers object was
allocated with new without a parent QObject or following delete.

* Removed unused functions
2017-04-05 10:56:59 +02:00

14 lines
214 B
C++

#ifndef QHELPERS_H
#define QHELPERS_H
class QPlainTextEdit;
class QTextEdit;
namespace qhelpers
{
void normalizeFont(QPlainTextEdit *edit);
void normalizeEditFont(QTextEdit *edit);
}
#endif // HELPERS_H