Fix inadvertent tqt changes. Part of an extensive cleanup of various problems

with kipi-plugins, digikam, and gwenview to resolve bug reports 241, 962, 963.
pull/1/head
Darrell Anderson 13 years ago
parent 0f64ac7c10
commit 207d90d427

@ -144,7 +144,7 @@ void AlbumDB::initDB()
{ {
if (!execSql( TQString("CREATE TABLE Albums\n" if (!execSql( TQString("CREATE TABLE Albums\n"
" (id INTEGER PRIMARY KEY,\n" " (id INTEGER PRIMARY KEY,\n"
" url TEXT NOT NULL UNITQUE,\n" " url TEXT NOT NULL UNIQUE,\n"
" date DATE NOT NULL,\n" " date DATE NOT NULL,\n"
" caption TEXT,\n" " caption TEXT,\n"
" collection TEXT,\n" " collection TEXT,\n"
@ -159,7 +159,7 @@ void AlbumDB::initDB()
" name TEXT NOT NULL,\n" " name TEXT NOT NULL,\n"
" icon INTEGER,\n" " icon INTEGER,\n"
" iconkde TEXT,\n" " iconkde TEXT,\n"
" UNITQUE (name, pid));") )) " UNIQUE (name, pid));") ))
{ {
return; return;
} }
@ -167,7 +167,7 @@ void AlbumDB::initDB()
if (!execSql( TQString("CREATE TABLE TagsTree\n" if (!execSql( TQString("CREATE TABLE TagsTree\n"
" (id INTEGER NOT NULL,\n" " (id INTEGER NOT NULL,\n"
" pid INTEGER NOT NULL,\n" " pid INTEGER NOT NULL,\n"
" UNITQUE (id, pid));") )) " UNIQUE (id, pid));") ))
{ {
return; return;
} }
@ -178,7 +178,7 @@ void AlbumDB::initDB()
" dirid INTEGER NOT NULL,\n" " dirid INTEGER NOT NULL,\n"
" caption TEXT,\n" " caption TEXT,\n"
" datetime DATETIME,\n" " datetime DATETIME,\n"
" UNITQUE (name, dirid));") )) " UNIQUE (name, dirid));") ))
{ {
return; return;
} }
@ -187,7 +187,7 @@ void AlbumDB::initDB()
if (!execSql( TQString("CREATE TABLE ImageTags\n" if (!execSql( TQString("CREATE TABLE ImageTags\n"
" (imageid INTEGER NOT NULL,\n" " (imageid INTEGER NOT NULL,\n"
" tagid INTEGER NOT NULL,\n" " tagid INTEGER NOT NULL,\n"
" UNITQUE (imageid, tagid));") )) " UNIQUE (imageid, tagid));") ))
{ {
return; return;
} }
@ -196,21 +196,21 @@ void AlbumDB::initDB()
" (imageid INTEGER NOT NULL,\n" " (imageid INTEGER NOT NULL,\n"
" property TEXT NOT NULL,\n" " property TEXT NOT NULL,\n"
" value TEXT NOT NULL,\n" " value TEXT NOT NULL,\n"
" UNITQUE (imageid, property));") )) " UNIQUE (imageid, property));") ))
{ {
return; return;
} }
if ( !execSql( TQString( "CREATE TABLE Searches \n" if ( !execSql( TQString( "CREATE TABLE Searches \n"
" (id INTEGER PRIMARY KEY, \n" " (id INTEGER PRIMARY KEY, \n"
" name TEXT NOT NULL UNITQUE, \n" " name TEXT NOT NULL UNIQUE, \n"
" url TEXT NOT NULL);" ) ) ) " url TEXT NOT NULL);" ) ) )
{ {
return; return;
} }
if (!execSql( TQString("CREATE TABLE Settings \n" if (!execSql( TQString("CREATE TABLE Settings \n"
"(keyword TEXT NOT NULL UNITQUE,\n" "(keyword TEXT NOT NULL UNIQUE,\n"
" value TEXT);") )) " value TEXT);") ))
return; return;
else else

@ -51,7 +51,6 @@ class AlbumFolderView : public FolderView
{ {
Q_OBJECT Q_OBJECT
public: public:
AlbumFolderView(TQWidget *parent); AlbumFolderView(TQWidget *parent);

@ -48,7 +48,6 @@ class AlbumHistory : public TQObject
{ {
Q_OBJECT Q_OBJECT
public: public:
AlbumHistory(); AlbumHistory();

@ -1863,11 +1863,11 @@ void AlbumIconView::slotSetExifOrientation( int orientation )
KURL::List::Iterator it; KURL::List::Iterator it;
float cnt = (float)urlList.count(); float cnt = (float)urlList.count();
emit signalProgressBarMode(StatusProgressBar::ProgressBarMode, emit signalProgressBarMode(StatusProgressBar::ProgressBarMode,
i18n("Revising Exif Qt::Orientation tags. Please wait...")); i18n("Revising Exif Orientation tags. Please wait..."));
for( it = urlList.begin(); it != urlList.end(); ++it ) for( it = urlList.begin(); it != urlList.end(); ++it )
{ {
DDebug() << "Setting Exif Qt::Orientation tag to " << orientation << endl; DDebug() << "Setting Exif Orientation tag to " << orientation << endl;
DMetadata metadata((*it).path()); DMetadata metadata((*it).path());
DMetadata::ImageOrientation o = (DMetadata::ImageOrientation)orientation; DMetadata::ImageOrientation o = (DMetadata::ImageOrientation)orientation;

@ -64,7 +64,6 @@ class AlbumIconView : public IconView,
{ {
Q_OBJECT Q_OBJECT
public: public:
AlbumIconView(TQWidget* parent); AlbumIconView(TQWidget* parent);

@ -45,7 +45,6 @@ class AlbumIconViewFilter : public TQHBox
{ {
Q_OBJECT Q_OBJECT
public: public:
AlbumIconViewFilter(TQWidget* parent); AlbumIconViewFilter(TQWidget* parent);

@ -61,7 +61,6 @@ class AlbumLister : public TQObject
{ {
Q_OBJECT Q_OBJECT
public: public:
/** @enum MatchingCondition /** @enum MatchingCondition

@ -88,7 +88,6 @@ class DIGIKAM_EXPORT AlbumManager : public TQObject
{ {
Q_OBJECT Q_OBJECT
public: public:
/** /**

@ -46,7 +46,6 @@ class AlbumPropsEdit : public KDialogBase
{ {
Q_OBJECT Q_OBJECT
public: public:
AlbumPropsEdit(PAlbum* album, bool create=false); AlbumPropsEdit(PAlbum* album, bool create=false);

@ -47,7 +47,6 @@ class AlbumThumbnailLoader : public TQObject
{ {
Q_OBJECT Q_OBJECT
public: public:
static AlbumThumbnailLoader *instance(); static AlbumThumbnailLoader *instance();

@ -49,7 +49,6 @@ class DIGIKAM_EXPORT AlbumWidgetStack : public TQWidgetStack
{ {
Q_OBJECT Q_OBJECT
public: public:
enum AlbumWidgetStackMode enum AlbumWidgetStackMode

@ -42,7 +42,6 @@ class CameraList : public TQObject
{ {
Q_OBJECT Q_OBJECT
public: public:
CameraList(TQObject *parent, const TQString& file); CameraList(TQObject *parent, const TQString& file);

@ -46,7 +46,6 @@ class DateFolderView : public TQVBox
{ {
Q_OBJECT Q_OBJECT
public: public:
DateFolderView(TQWidget* parent); DateFolderView(TQWidget* parent);

@ -45,7 +45,6 @@ class DCOPIface : public TQObject, public DCOPObject
{ {
K_DCOP K_DCOP
Q_OBJECT Q_OBJECT
//
public: public:

@ -789,7 +789,7 @@ void DigikamApp::setupActions()
0, 0,
actionCollection(), actionCollection(),
"image_set_exif_orientation_normal"); "image_set_exif_orientation_normal");
d->imageSetExifOrientation2Action = new KAction(i18n("FlippedQt::Horizontally"), d->imageSetExifOrientation2Action = new KAction(i18n("Flipped Horizontally"),
0, 0,
d->imageExifOrientationActionMenu, d->imageExifOrientationActionMenu,
0, 0,
@ -801,7 +801,7 @@ void DigikamApp::setupActions()
0, 0,
actionCollection(), actionCollection(),
"image_set_exif_orientation_rotated_upside_down"); "image_set_exif_orientation_rotated_upside_down");
d->imageSetExifOrientation4Action = new KAction(i18n("FlippedQt::Vertically"), d->imageSetExifOrientation4Action = new KAction(i18n("Flipped Vertically"),
0, 0,
d->imageExifOrientationActionMenu, d->imageExifOrientationActionMenu,
0, 0,

@ -56,7 +56,6 @@ class DIGIKAM_EXPORT DigikamApp : public KMainWindow
{ {
Q_OBJECT Q_OBJECT
public: public:
DigikamApp(); DigikamApp();

@ -45,7 +45,6 @@ class DIGIKAM_EXPORT DigikamFirstRun : public KDialogBase
{ {
Q_OBJECT Q_OBJECT
public: public:
DigikamFirstRun(KConfig* config, TQWidget* parent = 0, const char* name = 0, DigikamFirstRun(KConfig* config, TQWidget* parent = 0, const char* name = 0,

@ -48,7 +48,6 @@ class DigikamView : public TQHBox
{ {
Q_OBJECT Q_OBJECT
public: public:
DigikamView(TQWidget *parent); DigikamView(TQWidget *parent);

@ -40,7 +40,6 @@ class Watch : public TQObject
{ {
Q_OBJECT Q_OBJECT
public: public:
Watch(KIO::Job* job); Watch(KIO::Job* job);

@ -43,7 +43,6 @@ class DIGIKAM_EXPORT FirstRunWidget : public TQWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
FirstRunWidget( TQWidget* parent = 0 ); FirstRunWidget( TQWidget* parent = 0 );

@ -172,7 +172,7 @@ void FolderView::contentsMouseMoveEvent(TQMouseEvent *e)
{ {
TQListView::contentsMouseMoveEvent(e); TQListView::contentsMouseMoveEvent(e);
if(e->state() == Qt::NoButton) if(e->state() == NoButton)
{ {
if(KGlobalSettings::changeCursorOverIcon()) if(KGlobalSettings::changeCursorOverIcon())
{ {
@ -207,7 +207,7 @@ void FolderView::contentsMousePressEvent(TQMouseEvent *e)
// With Check Box item, we will toggle on/off item using middle mouse button. // With Check Box item, we will toggle on/off item using middle mouse button.
// See B.K.O #130906 // See B.K.O #130906
FolderCheckListItem *citem = dynamic_cast<FolderCheckListItem*>(item); FolderCheckListItem *citem = dynamic_cast<FolderCheckListItem*>(item);
if(citem && e->button() == Qt::MidButton && mouseInItemRect(item, e->pos().x())) if(citem && e->button() == MidButton && mouseInItemRect(item, e->pos().x()))
{ {
TQListView::contentsMousePressEvent(e); TQListView::contentsMousePressEvent(e);
citem->setOn(!citem->isOn()); citem->setOn(!citem->isOn());
@ -216,7 +216,7 @@ void FolderView::contentsMousePressEvent(TQMouseEvent *e)
TQListView::contentsMousePressEvent(e); TQListView::contentsMousePressEvent(e);
if(item && e->button() == Qt::LeftButton) if(item && e->button() == LeftButton)
{ {
// Prepare D&D if necessary // Prepare D&D if necessary
d->dragStartPos = e->pos(); d->dragStartPos = e->pos();
@ -232,7 +232,7 @@ void FolderView::contentsMouseReleaseEvent(TQMouseEvent *e)
TQListView::contentsMouseReleaseEvent(e); TQListView::contentsMouseReleaseEvent(e);
if(item && e->button() == Qt::LeftButton) if(item && e->button() == LeftButton)
{ {
// See B.K.O #126871: collapse/expand treeview using left mouse button single click. // See B.K.O #126871: collapse/expand treeview using left mouse button single click.
if (mouseInItemRect(item, e->pos().x())) if (mouseInItemRect(item, e->pos().x()))

@ -52,7 +52,6 @@ class DIGIKAM_EXPORT FolderView : public TQListView
{ {
Q_OBJECT Q_OBJECT
public: public:
enum CollapseMode enum CollapseMode

@ -1076,7 +1076,7 @@ void IconView::drawRubber(TQPainter* p)
void IconView::contentsMouseMoveEvent(TQMouseEvent* e) void IconView::contentsMouseMoveEvent(TQMouseEvent* e)
{ {
if (e->state() == Qt::NoButton) if (e->state() == NoButton)
{ {
IconItem* item = findItem(e->pos()); IconItem* item = findItem(e->pos());

@ -50,7 +50,6 @@ class DIGIKAM_EXPORT IconView : public TQScrollView
{ {
Q_OBJECT Q_OBJECT
public: public:
IconView(TQWidget* parent=0, const char* name=0); IconView(TQWidget* parent=0, const char* name=0);

@ -39,7 +39,6 @@ class ImageAttributesWatch : public TQObject
{ {
Q_OBJECT Q_OBJECT
public: public:
static ImageAttributesWatch *instance(); static ImageAttributesWatch *instance();

@ -130,7 +130,7 @@ ImagePreviewView::ImagePreviewView(AlbumWidgetStack *parent)
d = new ImagePreviewViewPriv; d = new ImagePreviewViewPriv;
d->parent = parent; d->parent = parent;
// get preview size from screen size, but limit from VGA to WTQXGA // get preview size from screen size, but limit from VGA to WQXGA
d->previewSize = TQMAX(KApplication::desktop()->height(), d->previewSize = TQMAX(KApplication::desktop()->height(),
KApplication::desktop()->width()); KApplication::desktop()->width());
if (d->previewSize < 640) if (d->previewSize < 640)

@ -50,7 +50,6 @@ class DIGIKAM_EXPORT ImagePreviewView : public PreviewWidget
Q_OBJECT Q_OBJECT
public: public:
ImagePreviewView(AlbumWidgetStack *parent=0); ImagePreviewView(AlbumWidgetStack *parent=0);

@ -57,7 +57,6 @@ class KDateEdit : public TQComboBox
{ {
Q_OBJECT Q_OBJECT
public: public:
KDateEdit( TQWidget *parent = 0, const char *name = 0 ); KDateEdit( TQWidget *parent = 0, const char *name = 0 );

@ -57,7 +57,6 @@ class KDatePickerPopup: public TQPopupMenu
{ {
Q_OBJECT Q_OBJECT
public: public:
enum enum

@ -50,7 +50,6 @@ class KDateTimeEdit : public TQHBox
{ {
Q_OBJECT Q_OBJECT
public: public:
/** /**

@ -155,7 +155,6 @@ class DigikamKipiInterface : public KIPI::Interface
{ {
Q_OBJECT Q_OBJECT
public: public:
DigikamKipiInterface( TQObject *parent, const char *name=0); DigikamKipiInterface( TQObject *parent, const char *name=0);

@ -45,7 +45,6 @@ class DIGIKAM_EXPORT MediaPlayerView : public TQWidgetStack
{ {
Q_OBJECT Q_OBJECT
public: public:
MediaPlayerView(TQWidget *parent=0); MediaPlayerView(TQWidget *parent=0);

@ -37,7 +37,6 @@ class MimeFilter : public TQComboBox
{ {
Q_OBJECT Q_OBJECT
public: public:
enum TypeMimeFilter enum TypeMimeFilter

@ -41,7 +41,6 @@ class MonthWidget : public TQFrame
{ {
Q_OBJECT Q_OBJECT
public: public:
MonthWidget(TQWidget* parent); MonthWidget(TQWidget* parent);

@ -51,7 +51,6 @@ class PixmapManager : public TQObject
{ {
Q_OBJECT Q_OBJECT
public: public:
PixmapManager(AlbumIconView* view); PixmapManager(AlbumIconView* view);

@ -39,7 +39,6 @@ class RatingFilter : public RatingWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
RatingFilter(TQWidget* parent); RatingFilter(TQWidget* parent);

@ -37,7 +37,6 @@ class RatingPopupMenu : public TQPopupMenu
{ {
Q_OBJECT Q_OBJECT
public: public:
RatingPopupMenu(TQWidget* parent=0); RatingPopupMenu(TQWidget* parent=0);

@ -38,7 +38,6 @@ class RatingWidget : public TQWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
RatingWidget(TQWidget* parent); RatingWidget(TQWidget* parent);

@ -52,7 +52,6 @@ class SearchAdvancedDialog : public KDialogBase
{ {
Q_OBJECT Q_OBJECT
public: public:
/** /**

@ -39,7 +39,6 @@ class SearchFolderView : public FolderView
{ {
Q_OBJECT Q_OBJECT
public: public:
SearchFolderView(TQWidget* parent); SearchFolderView(TQWidget* parent);

@ -24,8 +24,8 @@
/** @file searchquickdialog.h */ /** @file searchquickdialog.h */
#ifndef SEARCHTQUICKDIALOG_H #ifndef SEARCHQUICKDIALOG_H
#define SEARCHTQUICKDIALOG_H #define SEARCHQUICKDIALOG_H
// TQt includes. // TQt includes.
@ -52,7 +52,6 @@ class SearchQuickDialog : public KDialogBase
{ {
Q_OBJECT Q_OBJECT
public: public:
/** /**
@ -85,4 +84,4 @@ private:
} // namespace Digikam } // namespace Digikam
#endif /* SEARCHTQUICKDIALOG_H */ #endif /* SEARCHQUICKDIALOG_H */

@ -53,7 +53,6 @@ class SearchResultsView : public TQIconView
{ {
Q_OBJECT Q_OBJECT
public: public:
SearchResultsView(TQWidget* parent); SearchResultsView(TQWidget* parent);

@ -55,7 +55,6 @@ class SearchRuleLabel: public TQLabel
{ {
Q_OBJECT Q_OBJECT
public: public:
/** Constructor. See for more info the TQLabel clas. /** Constructor. See for more info the TQLabel clas.
@ -96,7 +95,6 @@ class SearchAdvancedBase : public TQObject
{ {
Q_OBJECT Q_OBJECT
public: public:
/** @enum Type /** @enum Type
@ -197,7 +195,6 @@ class SearchAdvancedRule : public SearchAdvancedBase
{ {
Q_OBJECT Q_OBJECT
public: public:
/** /**
* Constructor * Constructor

@ -56,7 +56,6 @@ class SyncJob : public TQObject
{ {
Q_OBJECT Q_OBJECT
public: public:
/* this will delete the urls. */ /* this will delete the urls. */

@ -110,7 +110,7 @@ TagEditDlg::TagEditDlg(TQWidget *parent, TAlbum* album, bool create)
d->topLabel = new TQLabel(page); d->topLabel = new TQLabel(page);
d->topLabel->setAlignment(TQt::AlignAuto | TQt::AlignVCenter | TQt::SingleLine); d->topLabel->setAlignment(TQt::AlignAuto | TQt::AlignVCenter | TQt::SingleLine);
KSeparator *line = new KSeparator(Qt::Horizontal, page); KSeparator *line = new KSeparator (Horizontal, page);
// -------------------------------------------------------- // --------------------------------------------------------

@ -46,7 +46,6 @@ class TagEditDlg : public KDialogBase
{ {
Q_OBJECT Q_OBJECT
public: public:
TagEditDlg(TQWidget *parent, TAlbum* album, bool create=false); TagEditDlg(TQWidget *parent, TAlbum* album, bool create=false);

@ -41,7 +41,6 @@ class TagFilterView : public FolderView
{ {
Q_OBJECT Q_OBJECT
public: public:
enum ToggleAutoTags enum ToggleAutoTags

@ -45,7 +45,6 @@ class TagFolderView : public FolderView
{ {
Q_OBJECT Q_OBJECT
public: public:
TagFolderView(TQWidget *parent); TagFolderView(TQWidget *parent);

@ -40,7 +40,6 @@ class TagsPopupMenu : public TQPopupMenu
{ {
Q_OBJECT Q_OBJECT
public: public:
enum Mode enum Mode

@ -39,7 +39,6 @@ class TimeLineFolderView : public FolderView
{ {
Q_OBJECT Q_OBJECT
public: public:
TimeLineFolderView(TQWidget* parent); TimeLineFolderView(TQWidget* parent);

@ -42,7 +42,6 @@ class TimeLineView : public TQWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
TimeLineView(TQWidget *parent=0); TimeLineView(TQWidget *parent=0);

@ -688,9 +688,9 @@ void TimeLineWidget::updatePixmap()
if (sel == Selected || sel == FuzzySelection) if (sel == Selected || sel == FuzzySelection)
{ {
selBrush.setColor(ThemeEngine::instance()->thumbSelColor()); selBrush.setColor(ThemeEngine::instance()->thumbSelColor());
selBrush.setStyle(Qt::SolidPattern); selBrush.setStyle(TQBrush::SolidPattern);
if (sel == FuzzySelection) if (sel == FuzzySelection)
selBrush.setStyle(Qt::Dense4Pattern); selBrush.setStyle(TQBrush::Dense4Pattern);
selRect.setTop(height() - d->bottomMargin + 1); selRect.setTop(height() - d->bottomMargin + 1);
selRect.setLeft(d->startPos + i*d->barWidth); selRect.setLeft(d->startPos + i*d->barWidth);
@ -872,9 +872,9 @@ void TimeLineWidget::updatePixmap()
if (sel == Selected || sel == FuzzySelection) if (sel == Selected || sel == FuzzySelection)
{ {
selBrush.setColor(ThemeEngine::instance()->thumbSelColor()); selBrush.setColor(ThemeEngine::instance()->thumbSelColor());
selBrush.setStyle(Qt::SolidPattern); selBrush.setStyle(TQBrush::SolidPattern);
if (sel == FuzzySelection) if (sel == FuzzySelection)
selBrush.setStyle(Qt::Dense4Pattern); selBrush.setStyle(TQBrush::Dense4Pattern);
selRect.setTop(height() - d->bottomMargin + 1); selRect.setTop(height() - d->bottomMargin + 1);
selRect.setLeft(d->startPos - (i+1)*d->barWidth); selRect.setLeft(d->startPos - (i+1)*d->barWidth);

@ -46,7 +46,6 @@ class TimeLineWidget : public TQWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
enum TimeUnit enum TimeUnit

@ -44,7 +44,6 @@ class DIGIKAM_EXPORT WelcomePageView : public KHTMLPart
{ {
Q_OBJECT Q_OBJECT
public: public:
WelcomePageView(TQWidget* parent); WelcomePageView(TQWidget* parent);

@ -21,8 +21,8 @@
* *
* ============================================================ */ * ============================================================ */
#ifndef COMMAND_TQUEUE_H #ifndef COMMAND_QUEUE_H
#define COMMAND_TQUEUE_H #define COMMAND_QUEUE_H
// TQt includes. // TQt includes.
@ -113,4 +113,4 @@ private:
} // namespace Digikam } // namespace Digikam
#endif // COMMAND_TQUEUE_H #endif // COMMAND_QUEUE_H

Loading…
Cancel
Save