Changeset View
Changeset View
Standalone View
Standalone View
Exif/SearchDialog.cpp
Show All 31 Lines | |||||
32 | #include <QDialogButtonBox> | 32 | #include <QDialogButtonBox> | ||
33 | #include <QPushButton> | 33 | #include <QPushButton> | ||
34 | 34 | | |||
35 | using namespace Exif; | 35 | using namespace Exif; | ||
36 | 36 | | |||
37 | Exif::SearchDialog::SearchDialog( QWidget* parent ) | 37 | Exif::SearchDialog::SearchDialog( QWidget* parent ) | ||
38 | : KPageDialog( parent ) | 38 | : KPageDialog( parent ) | ||
39 | { | 39 | { | ||
40 | setWindowTitle( i18n("EXIF Search") ); | 40 | setWindowTitle(i18nc("@title:window", "Exif Search")); | ||
41 | setFaceType( Tabbed ); | 41 | setFaceType( Tabbed ); | ||
42 | 42 | | |||
43 | QWidget* settings = new QWidget; | 43 | QWidget* settings = new QWidget; | ||
44 | KPageWidgetItem* page = new KPageWidgetItem( settings, i18n("Settings" ) ); | 44 | KPageWidgetItem* page = new KPageWidgetItem( settings, i18n("Settings" ) ); | ||
45 | 45 | | |||
46 | addPage( page ); | 46 | addPage( page ); | ||
47 | QVBoxLayout* vlay = new QVBoxLayout( settings ); | 47 | QVBoxLayout* vlay = new QVBoxLayout( settings ); | ||
48 | 48 | | |||
▲ Show 20 Lines • Show All 356 Lines • ▼ Show 20 Line(s) | 402 | for( QList< QString >::ConstIterator lensIt = lenses.constBegin(); lensIt != lenses.constEnd(); ++lensIt ) { | |||
405 | m_lenses.append( Setting< QString >( cb, *lensIt ) ); | 405 | m_lenses.append( Setting< QString >( cb, *lensIt ) ); | ||
406 | } | 406 | } | ||
407 | } | 407 | } | ||
408 | 408 | | |||
409 | if (Exif::Database::instance()->DBFileVersionGuaranteed() < 3) | 409 | if (Exif::Database::instance()->DBFileVersionGuaranteed() < 3) | ||
410 | { | 410 | { | ||
411 | QLabel* label = new QLabel( | 411 | QLabel* label = new QLabel( | ||
412 | i18n("Not all images in the database have lens information. " | 412 | i18n("Not all images in the database have lens information. " | ||
413 | "<note>Recreate the EXIF search database to ensure lens data for all images.</note>") ); | 413 | "<note>Recreate the Exif search database to ensure lens data for all images.</note>") ); | ||
414 | layout->addWidget(label); | 414 | layout->addWidget(label); | ||
415 | } | 415 | } | ||
416 | 416 | | |||
417 | return view; | 417 | return view; | ||
418 | } | 418 | } | ||
419 | 419 | | |||
420 | void Exif::SearchDialog::fromFocalLengthChanged( int val ) | 420 | void Exif::SearchDialog::fromFocalLengthChanged( int val ) | ||
421 | { | 421 | { | ||
Show All 11 Lines |