diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2012-04-12 21:52:51 -0500 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-06-28 02:54:18 +0200 |
commit | 3cf300077abf7fa8458e0409a2cf94d4bd1a82ce (patch) | |
tree | a0b2de4a1650bea0bc4ceb9b5ce65717ee76f147 | |
parent | d35605b420217715d95513f62ca6248e436e1876 (diff) | |
download | digikam-3cf300077abf7fa8458e0409a2cf94d4bd1a82ce.tar.gz digikam-3cf300077abf7fa8458e0409a2cf94d4bd1a82ce.zip |
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.
(cherry picked from commit 207d90d4274d2e211d95862263e5128056228a7c)
-rw-r--r-- | digikam/digikam/albumdb.cpp | 16 | ||||
-rw-r--r-- | digikam/digikam/albumiconview.cpp | 4 | ||||
-rw-r--r-- | digikam/digikam/digikamapp.cpp | 4 | ||||
-rw-r--r-- | digikam/digikam/folderview.cpp | 8 | ||||
-rw-r--r-- | digikam/digikam/iconview.cpp | 2 | ||||
-rw-r--r-- | digikam/digikam/imagepreviewview.cpp | 2 | ||||
-rw-r--r-- | digikam/digikam/searchquickdialog.h | 6 | ||||
-rw-r--r-- | digikam/digikam/tageditdlg.cpp | 2 | ||||
-rw-r--r-- | digikam/digikam/timelinewidget.cpp | 8 | ||||
-rw-r--r-- | digikam/utilities/cameragui/mtqueue.h | 6 |
10 files changed, 29 insertions, 29 deletions
diff --git a/digikam/digikam/albumdb.cpp b/digikam/digikam/albumdb.cpp index a2aba013..b4414dc0 100644 --- a/digikam/digikam/albumdb.cpp +++ b/digikam/digikam/albumdb.cpp @@ -144,7 +144,7 @@ void AlbumDB::initDB() { if (!execSql( TQString("CREATE TABLE Albums\n" " (id INTEGER PRIMARY KEY,\n" - " url TEXT NOT NULL UNITQUE,\n" + " url TEXT NOT NULL UNIQUE,\n" " date DATE NOT NULL,\n" " caption TEXT,\n" " collection TEXT,\n" @@ -159,7 +159,7 @@ void AlbumDB::initDB() " name TEXT NOT NULL,\n" " icon INTEGER,\n" " iconkde TEXT,\n" - " UNITQUE (name, pid));") )) + " UNIQUE (name, pid));") )) { return; } @@ -167,7 +167,7 @@ void AlbumDB::initDB() if (!execSql( TQString("CREATE TABLE TagsTree\n" " (id INTEGER NOT NULL,\n" " pid INTEGER NOT NULL,\n" - " UNITQUE (id, pid));") )) + " UNIQUE (id, pid));") )) { return; } @@ -178,7 +178,7 @@ void AlbumDB::initDB() " dirid INTEGER NOT NULL,\n" " caption TEXT,\n" " datetime DATETIME,\n" - " UNITQUE (name, dirid));") )) + " UNIQUE (name, dirid));") )) { return; } @@ -187,7 +187,7 @@ void AlbumDB::initDB() if (!execSql( TQString("CREATE TABLE ImageTags\n" " (imageid INTEGER NOT NULL,\n" " tagid INTEGER NOT NULL,\n" - " UNITQUE (imageid, tagid));") )) + " UNIQUE (imageid, tagid));") )) { return; } @@ -196,21 +196,21 @@ void AlbumDB::initDB() " (imageid INTEGER NOT NULL,\n" " property TEXT NOT NULL,\n" " value TEXT NOT NULL,\n" - " UNITQUE (imageid, property));") )) + " UNIQUE (imageid, property));") )) { return; } if ( !execSql( TQString( "CREATE TABLE Searches \n" " (id INTEGER PRIMARY KEY, \n" - " name TEXT NOT NULL UNITQUE, \n" + " name TEXT NOT NULL UNIQUE, \n" " url TEXT NOT NULL);" ) ) ) { return; } if (!execSql( TQString("CREATE TABLE Settings \n" - "(keyword TEXT NOT NULL UNITQUE,\n" + "(keyword TEXT NOT NULL UNIQUE,\n" " value TEXT);") )) return; else diff --git a/digikam/digikam/albumiconview.cpp b/digikam/digikam/albumiconview.cpp index ce177598..fd1a1480 100644 --- a/digikam/digikam/albumiconview.cpp +++ b/digikam/digikam/albumiconview.cpp @@ -1863,11 +1863,11 @@ void AlbumIconView::slotSetExifOrientation( int orientation ) KURL::List::Iterator it; float cnt = (float)urlList.count(); 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 ) { - DDebug() << "Setting Exif Qt::Orientation tag to " << orientation << endl; + DDebug() << "Setting Exif Orientation tag to " << orientation << endl; DMetadata metadata((*it).path()); DMetadata::ImageOrientation o = (DMetadata::ImageOrientation)orientation; diff --git a/digikam/digikam/digikamapp.cpp b/digikam/digikam/digikamapp.cpp index d8b255d1..1f3594ad 100644 --- a/digikam/digikam/digikamapp.cpp +++ b/digikam/digikam/digikamapp.cpp @@ -789,7 +789,7 @@ void DigikamApp::setupActions() 0, actionCollection(), "image_set_exif_orientation_normal"); - d->imageSetExifOrientation2Action = new KAction(i18n("FlippedQt::Horizontally"), + d->imageSetExifOrientation2Action = new KAction(i18n("Flipped Horizontally"), 0, d->imageExifOrientationActionMenu, 0, @@ -801,7 +801,7 @@ void DigikamApp::setupActions() 0, actionCollection(), "image_set_exif_orientation_rotated_upside_down"); - d->imageSetExifOrientation4Action = new KAction(i18n("FlippedQt::Vertically"), + d->imageSetExifOrientation4Action = new KAction(i18n("Flipped Vertically"), 0, d->imageExifOrientationActionMenu, 0, diff --git a/digikam/digikam/folderview.cpp b/digikam/digikam/folderview.cpp index 4160dbf4..a4724e42 100644 --- a/digikam/digikam/folderview.cpp +++ b/digikam/digikam/folderview.cpp @@ -172,7 +172,7 @@ void FolderView::contentsMouseMoveEvent(TQMouseEvent *e) { TQListView::contentsMouseMoveEvent(e); - if(e->state() == Qt::NoButton) + if(e->state() == NoButton) { 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. // See B.K.O #130906 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); citem->setOn(!citem->isOn()); @@ -216,7 +216,7 @@ void FolderView::contentsMousePressEvent(TQMouseEvent *e) TQListView::contentsMousePressEvent(e); - if(item && e->button() == Qt::LeftButton) + if(item && e->button() == LeftButton) { // Prepare D&D if necessary d->dragStartPos = e->pos(); @@ -232,7 +232,7 @@ void FolderView::contentsMouseReleaseEvent(TQMouseEvent *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. if (mouseInItemRect(item, e->pos().x())) diff --git a/digikam/digikam/iconview.cpp b/digikam/digikam/iconview.cpp index b9a5ac9c..40552ce5 100644 --- a/digikam/digikam/iconview.cpp +++ b/digikam/digikam/iconview.cpp @@ -1076,7 +1076,7 @@ void IconView::drawRubber(TQPainter* p) void IconView::contentsMouseMoveEvent(TQMouseEvent* e) { - if (e->state() == Qt::NoButton) + if (e->state() == NoButton) { IconItem* item = findItem(e->pos()); diff --git a/digikam/digikam/imagepreviewview.cpp b/digikam/digikam/imagepreviewview.cpp index 2710771f..25afdc94 100644 --- a/digikam/digikam/imagepreviewview.cpp +++ b/digikam/digikam/imagepreviewview.cpp @@ -130,7 +130,7 @@ ImagePreviewView::ImagePreviewView(AlbumWidgetStack *parent) d = new ImagePreviewViewPriv; 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(), KApplication::desktop()->width()); if (d->previewSize < 640) diff --git a/digikam/digikam/searchquickdialog.h b/digikam/digikam/searchquickdialog.h index 113694e8..af49b596 100644 --- a/digikam/digikam/searchquickdialog.h +++ b/digikam/digikam/searchquickdialog.h @@ -24,8 +24,8 @@ /** @file searchquickdialog.h */ -#ifndef SEARCHTQUICKDIALOG_H -#define SEARCHTQUICKDIALOG_H +#ifndef SEARCHQUICKDIALOG_H +#define SEARCHQUICKDIALOG_H // TQt includes. @@ -85,4 +85,4 @@ private: } // namespace Digikam -#endif /* SEARCHTQUICKDIALOG_H */ +#endif /* SEARCHQUICKDIALOG_H */ diff --git a/digikam/digikam/tageditdlg.cpp b/digikam/digikam/tageditdlg.cpp index a1ff99fa..835d29d5 100644 --- a/digikam/digikam/tageditdlg.cpp +++ b/digikam/digikam/tageditdlg.cpp @@ -110,7 +110,7 @@ TagEditDlg::TagEditDlg(TQWidget *parent, TAlbum* album, bool create) d->topLabel = new TQLabel(page); d->topLabel->setAlignment(TQt::AlignAuto | TQt::AlignVCenter | TQt::SingleLine); - KSeparator *line = new KSeparator(Qt::Horizontal, page); + KSeparator *line = new KSeparator (Horizontal, page); // -------------------------------------------------------- diff --git a/digikam/digikam/timelinewidget.cpp b/digikam/digikam/timelinewidget.cpp index 2d175d6d..ffd5d9a7 100644 --- a/digikam/digikam/timelinewidget.cpp +++ b/digikam/digikam/timelinewidget.cpp @@ -688,9 +688,9 @@ void TimeLineWidget::updatePixmap() if (sel == Selected || sel == FuzzySelection) { selBrush.setColor(ThemeEngine::instance()->thumbSelColor()); - selBrush.setStyle(Qt::SolidPattern); + selBrush.setStyle(TQBrush::SolidPattern); if (sel == FuzzySelection) - selBrush.setStyle(Qt::Dense4Pattern); + selBrush.setStyle(TQBrush::Dense4Pattern); selRect.setTop(height() - d->bottomMargin + 1); selRect.setLeft(d->startPos + i*d->barWidth); @@ -872,9 +872,9 @@ void TimeLineWidget::updatePixmap() if (sel == Selected || sel == FuzzySelection) { selBrush.setColor(ThemeEngine::instance()->thumbSelColor()); - selBrush.setStyle(Qt::SolidPattern); + selBrush.setStyle(TQBrush::SolidPattern); if (sel == FuzzySelection) - selBrush.setStyle(Qt::Dense4Pattern); + selBrush.setStyle(TQBrush::Dense4Pattern); selRect.setTop(height() - d->bottomMargin + 1); selRect.setLeft(d->startPos - (i+1)*d->barWidth); diff --git a/digikam/utilities/cameragui/mtqueue.h b/digikam/utilities/cameragui/mtqueue.h index 95b1931c..0fb80e5c 100644 --- a/digikam/utilities/cameragui/mtqueue.h +++ b/digikam/utilities/cameragui/mtqueue.h @@ -21,8 +21,8 @@ * * ============================================================ */ -#ifndef COMMAND_TQUEUE_H -#define COMMAND_TQUEUE_H +#ifndef COMMAND_QUEUE_H +#define COMMAND_QUEUE_H // TQt includes. @@ -113,4 +113,4 @@ private: } // namespace Digikam -#endif // COMMAND_TQUEUE_H +#endif // COMMAND_QUEUE_H |