1
/***************************************************************************
2
* Copyright (C) 2005 by Adam Treat *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
10
***************************************************************************/
12
#ifndef KCOMPLETIONTABLE_H
13
#define KCOMPLETIONTABLE_H
15
#include <kcompletionbox.h>
17
class KCompletionTable : public KCompletionBox
21
KCompletionTable( QWidget *parent = 0, const char *name = 0 );
23
virtual ~KCompletionTable();
25
void calculateWidths( QStringList &list );
27
QValueList<int> columnWidths() const;
28
void setColumnWidths( QValueList<int> &colWidths );
31
virtual QSize sizeHint() const;
36
virtual void resize ( int w, int h );
39
virtual void paintCell( QPainter * p, int row, int col );
42
void setupPainter( QPainter *p, QListBoxItem *i );
43
int columnPosition( uint column );
48
QMap<int, int> m_colWidths;