Improve history limits.

Closes #16
This commit is contained in:
Florian Geyer 2012-05-10 09:56:41 +02:00
parent 8c87a87da6
commit 1a74feb253
6 changed files with 54 additions and 38 deletions

View file

@ -22,7 +22,6 @@
#include <QtCore/QSet>
#include <QtCore/QObject>
#include <QtCore/QStringList>
#include <QtCore/QChar>
class EntryAttributes : public QObject
{
@ -32,7 +31,6 @@ public:
explicit EntryAttributes(QObject* parent = 0);
QList<QString> keys() const;
QString value(const QString& key) const;
int valueSize(const QString& key);
bool isProtected(const QString& key) const;
void set(const QString& key, const QString& value, bool protect = false);
void remove(const QString& key);
@ -44,6 +42,7 @@ public:
EntryAttributes& operator=(const EntryAttributes& other);
bool operator==(const EntryAttributes& other) const;
bool operator!=(const EntryAttributes& other) const;
static const QStringList DEFAULT_ATTRIBUTES;
static bool isDefaultAttribute(const QString& key);