summaryrefslogtreecommitdiff
path: root/client/historyframe.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/historyframe.h')
-rw-r--r--client/historyframe.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/client/historyframe.h b/client/historyframe.h
index 39366a9..696b8fc 100644
--- a/client/historyframe.h
+++ b/client/historyframe.h
@@ -28,22 +28,27 @@
#ifndef __MIAV_HISTORYFRAME_H__
#define __MIAV_HISTORYFRAME_H__
-#include <QFrame>
-#include <QList>
+#include <QGroupBox>
#include "historywidget.h"
-class HistoryFrame : public QFrame
+// How many history items should be held in memory?
+#define MAX_HISTORY 20
+
+class HistoryFrame : public QGroupBox
{
public:
HistoryFrame();
~HistoryFrame();
void addHistoryItem(HistoryWidget *item);
+ void clearHistory();
protected:
void resizeEvent(QResizeEvent *event);
private:
+ void doLayoutHistoryWidgets();
+
QList<HistoryWidget*> widgets;
};