~ubuntu-branches/ubuntu/dapper/digikam/dapper

« back to all changes in this revision

Viewing changes to digikam/digikam/searchresultsitem.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-12-06 19:57:49 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051206195749-sumdqzal77gsr36r
Tags: 0.8.0-1-1ubuntu1
* Sync with Debian
* Tighten libkexif and libkipi build-deps for c++ transition

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ============================================================
 
2
 * Author: Renchi Raju <renchi@pooh.tam.uiuc.edu>
 
3
 * Date  : 2005-05-20
 
4
 * Copyright 2005 by Renchi Raju
 
5
 *
 
6
 * This program is free software; you can redistribute it
 
7
 * and/or modify it under the terms of the GNU General
 
8
 * Public License as published by the Free Software Foundation;
 
9
 * either version 2, or (at your option)
 
10
 * any later version.
 
11
 * 
 
12
 * This program is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
 
16
 * ============================================================ */
 
17
 
 
18
#ifndef SEARCHRESULTSITEM_H
 
19
#define SEARCHRESULTSITEM_H
 
20
 
 
21
#include <qiconview.h>
 
22
 
 
23
class SearchResultsItem : public QIconViewItem
 
24
{
 
25
    friend class SearchResultsView;
 
26
 
 
27
public:
 
28
 
 
29
    SearchResultsItem(QIconView* view, const QString& path);
 
30
    ~SearchResultsItem();
 
31
 
 
32
protected:
 
33
 
 
34
    void calcRect(const QString& text = QString::null);
 
35
    void paintItem (QPainter * p, const QColorGroup & cg);
 
36
    void paintFocus (QPainter * p, const QColorGroup & cg);
 
37
 
 
38
private:
 
39
 
 
40
    static QPixmap* m_basePixmap;
 
41
    bool            m_marked;
 
42
    QString         m_path;
 
43
};    
 
44
    
 
45
 
 
46
#endif /* SEARCHRESULTSITEM_H */