Vidalia
0.3.1
src
vidalia
log
LogHeaderView.cpp
Go to the documentation of this file.
1
/*
2
** This file is part of Vidalia, and is subject to the license terms in the
3
** LICENSE file, found in the top level directory of this distribution. If you
4
** did not receive the LICENSE file with this file, you may obtain it from the
5
** Vidalia source package distributed by the Vidalia Project at
6
** http://www.torproject.org/projects/vidalia.html. No part of Vidalia,
7
** including this file, may be copied, modified, propagated, or distributed
8
** except according to the terms described in the LICENSE file.
9
*/
10
11
/*
12
** \file LogHeaderView.cpp
13
** \brief Header for the message log QTreeView
14
*/
15
16
#include "
LogHeaderView.h
"
17
#include "
LogTreeWidget.h
"
18
19
/* Column indices */
20
#define COL_TIME LogTreeWidget::TimeColumn
21
#define COL_TYPE LogTreeWidget::TypeColumn
22
#define COL_MESG LogTreeWidget::MessageColumn
23
24
/* Default column widths */
25
#define COL_TIME_WIDTH 135
26
#define COL_TYPE_WIDTH 70
27
28
29
/** Default constructor. */
30
LogHeaderView::LogHeaderView
(QWidget *parent)
31
: QHeaderView(Qt::Horizontal, parent)
32
{
33
}
34
35
/** Resets all column widths back to their defaults. */
36
void
37
LogHeaderView::resetColumnWidths
()
38
{
39
resizeSection(
COL_TIME
,
COL_TIME_WIDTH
);
40
resizeSection(
COL_TYPE
,
COL_TYPE_WIDTH
);
41
setStretchLastSection(
true
);
42
}
43
44
LogTreeWidget.h
LogHeaderView::LogHeaderView
LogHeaderView(QWidget *parent)
Definition:
LogHeaderView.cpp:30
COL_TYPE_WIDTH
#define COL_TYPE_WIDTH
Definition:
LogHeaderView.cpp:26
COL_TIME
#define COL_TIME
Definition:
LogHeaderView.cpp:20
LogHeaderView.h
COL_TIME_WIDTH
#define COL_TIME_WIDTH
Definition:
LogHeaderView.cpp:25
COL_TYPE
#define COL_TYPE
Definition:
LogHeaderView.cpp:21
LogHeaderView::resetColumnWidths
void resetColumnWidths()
Definition:
LogHeaderView.cpp:37
Generated by
1.8.17