[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeextragear-libs-1/kipi-plugins/findimages
From: Gilles Caulier <caulier.gilles () free ! fr>
Date: 2004-09-20 20:17:12
Message-ID: 20040920201712.744A39003 () office ! kde ! org
[Download RAW message or body]
CVS commit by cgilles:
Added graphical banner to the kipi finduplicateimages plugin results dialog.
M +26 -1 displaycompare.cpp 1.17
--- kdeextragear-libs-1/kipi-plugins/findimages/displaycompare.cpp #1.16:1.17
@@ -40,4 +40,5 @@
#include <qwhatsthis.h>
#include <qpushbutton.h>
+#include <qframe.h>
// Include files for KDE
@@ -61,4 +62,5 @@
#include <kiconloader.h>
#include <kpopupmenu.h>
+#include <kstandarddirs.h>
// Include files for KIPI
@@ -160,6 +162,29 @@ DisplayCompare::DisplayCompare(QWidget*
QWidget* box = new QWidget( this );
setMainWidget(box);
-
QVBoxLayout* ml = new QVBoxLayout( box, 10 );
+
+ QFrame *headerFrame = new QFrame( box );
+ headerFrame->setFrameStyle(QFrame::Panel|QFrame::Sunken);
+ QHBoxLayout* layout = new QHBoxLayout( headerFrame );
+ layout->setMargin( 2 ); // to make sure the frame gets displayed
+ layout->setSpacing( 0 );
+ QLabel *pixmapLabelLeft = new QLabel( headerFrame, "pixmapLabelLeft" );
+ pixmapLabelLeft->setScaledContents( false );
+ layout->addWidget( pixmapLabelLeft );
+ QLabel *labelTitle = new QLabel( i18n("Find Duplicate Images Results"), \
headerFrame, "labelTitle" ); + layout->addWidget( labelTitle );
+ layout->setStretchFactor( labelTitle, 1 );
+ ml->addWidget( headerFrame );
+
+ QString directory;
+ KGlobal::dirs()->addResourceType("kipi_banner_left", \
KGlobal::dirs()->kde_default("data") + "kipi/data"); + directory = \
KGlobal::dirs()->findResourceDir("kipi_banner_left", "banner_left.png"); +
+ pixmapLabelLeft->setPaletteBackgroundColor( QColor(201, 208, 255) );
+ pixmapLabelLeft->setPixmap( QPixmap( directory + "banner_left.png" ) );
+ labelTitle->setPaletteBackgroundColor( QColor(201, 208, 255) );
+
+ // ----------------------------------------------------
+
QHBoxLayout* h1 = new QHBoxLayout( ml );
QVBoxLayout* v1 = new QVBoxLayout( h1 );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic