marble
PhotoPlugin.cpp
Go to the documentation of this file.
94 return tr( "Automatically downloads images from around the world in preference to their popularity" );
200 setNumberOfItems( qMin<int>( maximumNumberOfItems, settings.value( "numberOfItems", 15 ).toInt() ) );
201 m_checkStateList = settings.value( "checkState", "1,2,3,4,5,6,7" ).toString().split( ',', QString::SkipEmptyParts );
228 const QString licenseId = QString::number( ui_configWidget->m_licenseListWidget->item(i)->data( Qt::UserRole+1 ).toInt() );
229 ui_configWidget->m_licenseListWidget->item(i)->setCheckState( m_checkStateList.contains( licenseId ) ? Qt::Checked : Qt::Unchecked );
241 licenseCheckStateList << ui_configWidget->m_licenseListWidget->item(i)->data( Qt::UserRole+1 ).toString();
void setNumberOfItems(quint32 number)
Set the number of items to be shown at the same time.
Definition: AbstractDataPlugin.cpp:156
iterator insert(const Key &key, const T &value)
Definition: PhotoPluginModel.h:24
void changedNumberOfItems(quint32 number)
bool eventFilter(QObject *, QEvent *)
Definition: RenderPlugin.cpp:216
This file contains the headers for MarbleModel.
Definition: PluginInterface.h:28
bool contains(const QString &str, Qt::CaseSensitivity cs) const
An abstract data model (not based on QAbstractModel) for a AbstractDataPlugin.
Definition: AbstractDataPluginModel.h:45
QString description() const
Returns a user description of the plugin.
Definition: PhotoPlugin.cpp:92
An abstract class for plugins that show data that has a geo coordinate.
Definition: AbstractDataPlugin.h:45
QString join(const QString &separator) const
QString tr(const char *sourceText, const char *disambiguation, int n)
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:104
virtual void setSettings(const QHash< QString, QVariant > &settings)
Set the settings of the item.
Definition: PhotoPlugin.cpp:196
quint32 numberOfItems() const
bool isInitialized() const
Definition: AbstractDataPlugin.cpp:81
QString number(int n, int base)
void setItemSettings(QHash< QString, QVariant > itemSettings)
Sets the settings for all items.
Definition: AbstractDataPluginModel.cpp:568
void settingsChanged(QString nameId)
This signal is emitted if the settings of the RenderPlugin changed.
void setMarbleWidget(MarbleWidget *widget)
Definition: PhotoPluginModel.cpp:152
virtual QHash< QString, QVariant > settings() const
Definition: PhotoPlugin.cpp:186
void setCheckState(Qt::CheckState state)
Definition: PhotoPlugin.h:31
void setModel(AbstractDataPluginModel *model)
Set the model of the plugin.
Definition: AbstractDataPlugin.cpp:134
const T value(const Key &key) const
void setIcon(const QIcon &icon)
virtual void setData(int role, const QVariant &value)
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
bool eventFilter(QObject *object, QEvent *event)
Definition: PhotoPlugin.cpp:207
This file contains the headers for MarbleWidget.
QDialog * configDialog()
Returns a pointer to the configuration dialog of the plugin.
Definition: PhotoPlugin.cpp:114
QList< PluginAuthor > pluginAuthors() const
Definition: PhotoPlugin.cpp:102
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
virtual QHash< QString, QVariant > settings() const
Settings of the plugin.
Definition: RenderPlugin.cpp:185
AbstractDataPluginModel * model()
Definition: AbstractDataPlugin.cpp:124
virtual void setSettings(const QHash< QString, QVariant > &settings)
Set the settings of the plugin.
Definition: RenderPlugin.cpp:195
void setText(const QString &text)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.