pgLab/util.h
Eelke Klein 37e8882a3c New syntax highlighter not complete.
- Supports comments
- more efficient as it scans the text block instead of repeatedly searching throught the whole block
- type matching based on catalog (but need to add aliases manually)
- added many keywords

todo:
- heap corruption bug
- symbol stops at special char like parenthese or operator or something similar.
2017-02-07 21:39:45 +01:00

25 lines
451 B
C++

#ifndef UTIL_H
#define UTIL_H
#include <QString>
#include <QTableView>
QString msfloatToHumanReadableString(float ms);
void copySelectionToClipboard(const QTableView *view);
QString ConvertToMultiLineCString(const QString &in);
void exportTable(const QTableView *view, QTextStream &out);
namespace std {
template <>
struct hash<QString>
{
std::size_t operator()(const QString& s) const
{
return qHash(s);
}
};
}
#endif // UTIL_H