mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 11:26:11 +00:00
44b72a1826
* 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
14 lines
214 B
C++
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
|