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"
" (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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save