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

@ -50,7 +50,6 @@ class AlbumFolderViewPriv;
class AlbumFolderView : public FolderView class AlbumFolderView : public FolderView
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -47,7 +47,6 @@ class HistoryItem;
class AlbumHistory : public TQObject class AlbumHistory : public TQObject
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -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;

@ -63,7 +63,6 @@ class AlbumIconView : public IconView,
public AlbumItemHandler public AlbumItemHandler
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -44,7 +44,6 @@ class AlbumIconViewFilterPriv;
class AlbumIconViewFilter : public TQHBox class AlbumIconViewFilter : public TQHBox
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -60,7 +60,6 @@ class AlbumListerPriv;
class AlbumLister : public TQObject class AlbumLister : public TQObject
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -87,7 +87,6 @@ typedef TQPair<int, int> YearMonth;
class DIGIKAM_EXPORT AlbumManager : public TQObject class DIGIKAM_EXPORT AlbumManager : public TQObject
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -45,7 +45,6 @@ class AlbumPropsEditPriv;
class AlbumPropsEdit : public KDialogBase class AlbumPropsEdit : public KDialogBase
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -46,7 +46,6 @@ class AlbumThumbnailLoaderPrivate;
class AlbumThumbnailLoader : public TQObject class AlbumThumbnailLoader : public TQObject
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -48,7 +48,6 @@ class AlbumWidgetStackPriv;
class DIGIKAM_EXPORT AlbumWidgetStack : public TQWidgetStack class DIGIKAM_EXPORT AlbumWidgetStack : public TQWidgetStack
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -41,7 +41,6 @@ class CameraListPrivate;
class CameraList : public TQObject class CameraList : public TQObject
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -45,7 +45,6 @@ class DAlbum;
class DateFolderView : public TQVBox class DateFolderView : public TQVBox
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -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,

@ -55,7 +55,6 @@ class DigikamAppPriv;
class DIGIKAM_EXPORT DigikamApp : public KMainWindow class DIGIKAM_EXPORT DigikamApp : public KMainWindow
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -44,7 +44,6 @@ class FirstRunWidget;
class DIGIKAM_EXPORT DigikamFirstRun : public KDialogBase class DIGIKAM_EXPORT DigikamFirstRun : public KDialogBase
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -47,7 +47,6 @@ class DigikamViewPriv;
class DigikamView : public TQHBox class DigikamView : public TQHBox
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -39,7 +39,6 @@ namespace DIO
class Watch : public TQObject class Watch : public TQObject
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -42,7 +42,6 @@ namespace Digikam
class DIGIKAM_EXPORT FirstRunWidget : public TQWidget class DIGIKAM_EXPORT FirstRunWidget : public TQWidget
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -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()))

@ -51,7 +51,6 @@ class FolderItem;
class DIGIKAM_EXPORT FolderView : public TQListView class DIGIKAM_EXPORT FolderView : public TQListView
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -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());

@ -49,7 +49,6 @@ class IconViewPriv;
class DIGIKAM_EXPORT IconView : public TQScrollView class DIGIKAM_EXPORT IconView : public TQScrollView
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -38,7 +38,6 @@ namespace Digikam
class ImageAttributesWatch : public TQObject class ImageAttributesWatch : public TQObject
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -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)

@ -49,7 +49,6 @@ class DIGIKAM_EXPORT ImagePreviewView : public PreviewWidget
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -56,7 +56,6 @@ namespace Digikam
class KDateEdit : public TQComboBox class KDateEdit : public TQComboBox
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -56,7 +56,6 @@ namespace Digikam
class KDatePickerPopup: public TQPopupMenu class KDatePickerPopup: public TQPopupMenu
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -49,7 +49,6 @@ class KDateEdit;
class KDateTimeEdit : public TQHBox class KDateTimeEdit : public TQHBox
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -154,7 +154,6 @@ private:
class DigikamKipiInterface : public KIPI::Interface class DigikamKipiInterface : public KIPI::Interface
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -44,7 +44,6 @@ class MediaPlayerViewPriv;
class DIGIKAM_EXPORT MediaPlayerView : public TQWidgetStack class DIGIKAM_EXPORT MediaPlayerView : public TQWidgetStack
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -36,7 +36,6 @@ class MimeFilterPriv;
class MimeFilter : public TQComboBox class MimeFilter : public TQComboBox
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -40,7 +40,6 @@ class MonthWidgetPriv;
class MonthWidget : public TQFrame class MonthWidget : public TQFrame
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -50,7 +50,6 @@ class PixmapManagerPriv;
class PixmapManager : public TQObject class PixmapManager : public TQObject
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -38,7 +38,6 @@ class RatingFilterPriv;
class RatingFilter : public RatingWidget class RatingFilter : public RatingWidget
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -36,7 +36,6 @@ class RatingPopupMenuPriv;
class RatingPopupMenu : public TQPopupMenu class RatingPopupMenu : public TQPopupMenu
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -37,7 +37,6 @@ class RatingWidgetPriv;
class RatingWidget : public TQWidget class RatingWidget : public TQWidget
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -51,7 +51,6 @@ class SearchAdvancedDialogPriv;
class SearchAdvancedDialog : public KDialogBase class SearchAdvancedDialog : public KDialogBase
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -38,7 +38,6 @@ class SearchFolderItem;
class SearchFolderView : public FolderView class SearchFolderView : public FolderView
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -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.
@ -51,7 +51,6 @@ class SearchQuickDialogPriv;
class SearchQuickDialog : public KDialogBase 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 */

@ -52,7 +52,6 @@ class SearchResultsViewPriv;
class SearchResultsView : public TQIconView class SearchResultsView : public TQIconView
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -54,7 +54,6 @@ class SqueezedComboBox;
class SearchRuleLabel: public TQLabel class SearchRuleLabel: public TQLabel
{ {
Q_OBJECT Q_OBJECT
public: public:
@ -95,7 +94,6 @@ private:
class SearchAdvancedBase : public TQObject class SearchAdvancedBase : public TQObject
{ {
Q_OBJECT Q_OBJECT
public: public:
@ -196,7 +194,6 @@ class SearchAdvancedGroup;
class SearchAdvancedRule : public SearchAdvancedBase class SearchAdvancedRule : public SearchAdvancedBase
{ {
Q_OBJECT Q_OBJECT
public: public:
/** /**

@ -55,7 +55,6 @@ class TAlbum;
class SyncJob : public TQObject class SyncJob : public TQObject
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -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);
// -------------------------------------------------------- // --------------------------------------------------------

@ -45,7 +45,6 @@ class TagEditDlgPriv;
class TagEditDlg : public KDialogBase class TagEditDlg : public KDialogBase
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -40,7 +40,6 @@ class TagFilterViewPrivate;
class TagFilterView : public FolderView class TagFilterView : public FolderView
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -44,7 +44,6 @@ class TagFolderViewPriv;
class TagFolderView : public FolderView class TagFolderView : public FolderView
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -39,7 +39,6 @@ class TagsPopupMenuPriv;
class TagsPopupMenu : public TQPopupMenu class TagsPopupMenu : public TQPopupMenu
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -38,7 +38,6 @@ class TimeLineFolderItem;
class TimeLineFolderView : public FolderView class TimeLineFolderView : public FolderView
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -41,7 +41,6 @@ class TimeLineViewPriv;
class TimeLineView : public TQWidget class TimeLineView : public TQWidget
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -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);

@ -45,7 +45,6 @@ class TimeLineWidgetPriv;
class TimeLineWidget : public TQWidget class TimeLineWidget : public TQWidget
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -43,7 +43,6 @@ namespace Digikam
class DIGIKAM_EXPORT WelcomePageView : public KHTMLPart class DIGIKAM_EXPORT WelcomePageView : public KHTMLPart
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -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