Vidalia
0.3.1
Main Page
Namespaces
Classes
Files
File List
File Members
src
vidalia
log
LogMessageColumnDelegate.h
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 LogMessageColumnDelegate.h
13
** \brief Delegate responsible for rendering the log message column
14
*/
15
16
#ifndef _LOGMESSAGECOLUMNDELEGATE_H
17
#define _LOGMESSAGECOLUMNDELEGATE_H
18
19
#include <QItemDelegate>
20
21
22
class
LogMessageColumnDelegate
:
public
QItemDelegate
23
{
24
public
:
25
/** Default constructor. */
26
LogMessageColumnDelegate
(QObject *parent = 0);
27
28
/** Overrides the default paint() method so that we can prevent Qt from
29
* munging Tor's log messages when using a Right-to-Left layout (e.g. when
30
* viewing Vidalia in Farsi). */
31
virtual
void
paint
(QPainter *painter,
32
const
QStyleOptionViewItem &option,
33
const
QModelIndex &index)
const
;
34
};
35
36
#endif
37
LogMessageColumnDelegate::paint
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition:
LogMessageColumnDelegate.cpp:29
LogMessageColumnDelegate
Definition:
LogMessageColumnDelegate.h:22
LogMessageColumnDelegate::LogMessageColumnDelegate
LogMessageColumnDelegate(QObject *parent=0)
Definition:
LogMessageColumnDelegate.cpp:20
Generated on Tue Oct 27 2015 15:36:04 for Vidalia by
1.8.8