Commit 03c9056b authored by Rafał Malinowski's avatar Rafał Malinowski

configuration: typo fixed

Signed-off-by: Rafał Malinowski's avatarRafał Malinowski <rafal.przemyslaw.malinowski@gmail.com>
parent 87fd4c90
......@@ -314,8 +314,8 @@ void AccountShared::setDisconnectStatus()
if (!ProtocolHandler->isConnected() && !ProtocolHandler->isDisconnecting())
return;
bool disconnectWithCurrentDescription = KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("General", "DisconnectWithCurrentDescription");
QString disconnectDescription = KaduApplication::instance()->depreceatedConfigurationApi()->readEntry("General", "DisconnectDescription");
bool disconnectWithCurrentDescription = KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("General", "DisconnectWithCurrentDescription");
QString disconnectDescription = KaduApplication::instance()->deprecatedConfigurationApi()->readEntry("General", "DisconnectDescription");
Status disconnectStatus;
disconnectStatus.setType(StatusTypeOffline);
......
......@@ -37,7 +37,7 @@
if( X11_isWindowShaded( QX11Info::display(), window->winId() ) )
X11_shadeWindow( QX11Info::display(), window->winId(), false );
// read user settings
int action = KaduApplication::instance()->depreceatedConfigurationApi()->readNumEntry( "General", "WindowActivationMethod" );
int action = KaduApplication::instance()->deprecatedConfigurationApi()->readNumEntry( "General", "WindowActivationMethod" );
// window & desktop
if( X11_getDesktopsCount( QX11Info::display() ) > 1 )
{
......
......@@ -69,7 +69,7 @@ QString GroupShared::storageNodeName()
void GroupShared::importConfiguration(const QString &name)
{
Name = name;
Icon = KaduApplication::instance()->depreceatedConfigurationApi()->readEntry("GroupIcon", name);
Icon = KaduApplication::instance()->deprecatedConfigurationApi()->readEntry("GroupIcon", name);
NotifyAboutStatusChanges = true;
ShowInAllGroup= true;
OfflineToGroup= false;
......
......@@ -118,18 +118,18 @@ void ChatStyleManager::unregisterChatStyleEngine(const QString &name)
void ChatStyleManager::configurationUpdated()
{
if (KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Chat", "ChatPrune", true))
Prune = KaduApplication::instance()->depreceatedConfigurationApi()->readNumEntry("Chat", "ChatPruneLen");
if (KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Chat", "ChatPrune", true))
Prune = KaduApplication::instance()->deprecatedConfigurationApi()->readNumEntry("Chat", "ChatPruneLen");
else
{
KaduApplication::instance()->depreceatedConfigurationApi()->writeEntry("Chat", "ChatPrune", true);
KaduApplication::instance()->depreceatedConfigurationApi()->writeEntry("Chat", "ChatPruneLen", 0);
KaduApplication::instance()->deprecatedConfigurationApi()->writeEntry("Chat", "ChatPrune", true);
KaduApplication::instance()->deprecatedConfigurationApi()->writeEntry("Chat", "ChatPruneLen", 0);
Prune = 0;
}
ParagraphSeparator = KaduApplication::instance()->depreceatedConfigurationApi()->readNumEntry("Look", "ParagraphSeparator");
ParagraphSeparator = KaduApplication::instance()->deprecatedConfigurationApi()->readNumEntry("Look", "ParagraphSeparator");
QFont font = KaduApplication::instance()->depreceatedConfigurationApi()->readFontEntry("Look","ChatFont");
QFont font = KaduApplication::instance()->deprecatedConfigurationApi()->readFontEntry("Look","ChatFont");
QString fontFamily = font.family();
QString fontSize;
......@@ -171,13 +171,13 @@ void ChatStyleManager::configurationUpdated()
" padding: 3px;"
"}").arg(fontStyle, fontWeight, fontSize, fontFamily, textDecoration, QString::number(ParagraphSeparator), backgroundColor);
CfgNoHeaderRepeat = KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Look", "NoHeaderRepeat", true);
CfgNoHeaderRepeat = KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Look", "NoHeaderRepeat", true);
// headers removal stuff
if (CfgNoHeaderRepeat)
{
CfgHeaderSeparatorHeight = KaduApplication::instance()->depreceatedConfigurationApi()->readNumEntry("Look", "HeaderSeparatorHeight");
CfgNoHeaderInterval = KaduApplication::instance()->depreceatedConfigurationApi()->readNumEntry("Look", "NoHeaderInterval");
CfgHeaderSeparatorHeight = KaduApplication::instance()->deprecatedConfigurationApi()->readNumEntry("Look", "HeaderSeparatorHeight");
CfgNoHeaderInterval = KaduApplication::instance()->deprecatedConfigurationApi()->readNumEntry("Look", "NoHeaderInterval");
}
else
{
......@@ -185,10 +185,10 @@ void ChatStyleManager::configurationUpdated()
CfgNoHeaderInterval = 0;
}
NoServerTime = KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Look", "NoServerTime");
NoServerTimeDiff = KaduApplication::instance()->depreceatedConfigurationApi()->readNumEntry("Look", "NoServerTimeDiff");
NoServerTime = KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Look", "NoServerTime");
NoServerTimeDiff = KaduApplication::instance()->deprecatedConfigurationApi()->readNumEntry("Look", "NoServerTimeDiff");
auto newChatStyle = ChatStyle{KaduApplication::instance()->depreceatedConfigurationApi()->readEntry("Look", "Style"), KaduApplication::instance()->depreceatedConfigurationApi()->readEntry("Look", "ChatStyleVariant")};
auto newChatStyle = ChatStyle{KaduApplication::instance()->deprecatedConfigurationApi()->readEntry("Look", "Style"), KaduApplication::instance()->deprecatedConfigurationApi()->readEntry("Look", "ChatStyleVariant")};
// if Style was changed, load new Style
if (!CurrentEngine || newChatStyle != m_currentChatStyle)
......@@ -356,8 +356,8 @@ void ChatStyleManager::mainConfigurationWindowCreated(MainConfigurationWindow *w
void ChatStyleManager::configurationApplied()
{
KaduApplication::instance()->depreceatedConfigurationApi()->writeEntry("Look", "Style", SyntaxListCombo->currentText());
KaduApplication::instance()->depreceatedConfigurationApi()->writeEntry("Look", "ChatStyleVariant", VariantListCombo->currentText());
KaduApplication::instance()->deprecatedConfigurationApi()->writeEntry("Look", "Style", SyntaxListCombo->currentText());
KaduApplication::instance()->deprecatedConfigurationApi()->writeEntry("Look", "ChatStyleVariant", VariantListCombo->currentText());
}
void ChatStyleManager::styleChangedSlot(const QString &styleName)
......
......@@ -232,7 +232,7 @@ bool ChatShared::shouldStore()
return false;
// we dont need data for non-roster contacts only from 4 version of sql schema
if (KaduApplication::instance()->depreceatedConfigurationApi()->readNumEntry("History", "Schema", 0) < 4)
if (KaduApplication::instance()->deprecatedConfigurationApi()->readNumEntry("History", "Schema", 0) < 4)
return true;
if (customProperties()->shouldStore())
......
......@@ -141,7 +141,7 @@ void RecentChatManager::store()
for (int i = 0; i < count; i++)
mainElement.removeChild(chatElements.at(i));
if (!KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Chat", "RecentChatsClear", false))
if (!KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Chat", "RecentChatsClear", false))
foreach (const Chat &chat, RecentChats)
if (chat && !chat.uuid().isNull())
{
......@@ -235,7 +235,7 @@ void RecentChatManager::removeRecentChat(Chat chat)
void RecentChatManager::configurationUpdated()
{
CleanUpTimer.stop();
RecentChatsTimeout = KaduApplication::instance()->depreceatedConfigurationApi()->readNumEntry("Chat", "RecentChatsTimeout") * 60;
RecentChatsTimeout = KaduApplication::instance()->deprecatedConfigurationApi()->readNumEntry("Chat", "RecentChatsTimeout") * 60;
if (RecentChatsTimeout > 0)
CleanUpTimer.start();
......
......@@ -58,35 +58,35 @@ void ChatConfigurationHolder::init()
void ChatConfigurationHolder::configurationUpdated()
{
AutoSend = KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Chat", "AutoSend");
NiceDateFormat = KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Look", "NiceDateFormat");
ChatTextCustomColors = KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Look", "ChatTextCustomColors");
ChatTextBgColor = KaduApplication::instance()->depreceatedConfigurationApi()->readColorEntry("Look", "ChatTextBgColor");
ChatTextFontColor = KaduApplication::instance()->depreceatedConfigurationApi()->readColorEntry("Look", "ChatTextFontColor");
ForceCustomChatFont = KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Look", "ForceCustomChatFont");
ChatFont = KaduApplication::instance()->depreceatedConfigurationApi()->readFontEntry("Look", "ChatFont");
ChatContents = KaduApplication::instance()->depreceatedConfigurationApi()->readEntry("Look", "ChatContents");
ConferenceContents = KaduApplication::instance()->depreceatedConfigurationApi()->readEntry("Look", "ConferenceContents");
ConferencePrefix = KaduApplication::instance()->depreceatedConfigurationApi()->readEntry("Look", "ConferencePrefix");
MyBackgroundColor = KaduApplication::instance()->depreceatedConfigurationApi()->readEntry("Look", "ChatMyBgColor");
MyFontColor = KaduApplication::instance()->depreceatedConfigurationApi()->readEntry("Look", "ChatMyFontColor");
MyNickColor = KaduApplication::instance()->depreceatedConfigurationApi()->readEntry("Look", "ChatMyNickColor");
UsrBackgroundColor = KaduApplication::instance()->depreceatedConfigurationApi()->readEntry("Look", "ChatUsrBgColor");
UsrFontColor = KaduApplication::instance()->depreceatedConfigurationApi()->readEntry("Look", "ChatUsrFontColor");
UsrNickColor = KaduApplication::instance()->depreceatedConfigurationApi()->readEntry("Look", "ChatUsrNickColor");
ContactStateChats = KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Chat", "ContactStateChats");
ContactStateWindowTitle = KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Chat", "ContactStateWindowTitle");
ContactStateWindowTitlePosition = KaduApplication::instance()->depreceatedConfigurationApi()->readNumEntry("Chat", "ContactStateWindowTitlePosition");
ContactStateWindowTitleComposingSyntax = KaduApplication::instance()->depreceatedConfigurationApi()->readEntry("Chat", "ContactStateWindowTitleComposingSyntax");
ChatBgFilled = KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Look", "ChatBgFilled");
ChatBgColor = KaduApplication::instance()->depreceatedConfigurationApi()->readColorEntry("Look", "ChatBgColor");
UseTransparency = KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Chat", "UseTransparency");
AutoSend = KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Chat", "AutoSend");
NiceDateFormat = KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Look", "NiceDateFormat");
ChatTextCustomColors = KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Look", "ChatTextCustomColors");
ChatTextBgColor = KaduApplication::instance()->deprecatedConfigurationApi()->readColorEntry("Look", "ChatTextBgColor");
ChatTextFontColor = KaduApplication::instance()->deprecatedConfigurationApi()->readColorEntry("Look", "ChatTextFontColor");
ForceCustomChatFont = KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Look", "ForceCustomChatFont");
ChatFont = KaduApplication::instance()->deprecatedConfigurationApi()->readFontEntry("Look", "ChatFont");
ChatContents = KaduApplication::instance()->deprecatedConfigurationApi()->readEntry("Look", "ChatContents");
ConferenceContents = KaduApplication::instance()->deprecatedConfigurationApi()->readEntry("Look", "ConferenceContents");
ConferencePrefix = KaduApplication::instance()->deprecatedConfigurationApi()->readEntry("Look", "ConferencePrefix");
MyBackgroundColor = KaduApplication::instance()->deprecatedConfigurationApi()->readEntry("Look", "ChatMyBgColor");
MyFontColor = KaduApplication::instance()->deprecatedConfigurationApi()->readEntry("Look", "ChatMyFontColor");
MyNickColor = KaduApplication::instance()->deprecatedConfigurationApi()->readEntry("Look", "ChatMyNickColor");
UsrBackgroundColor = KaduApplication::instance()->deprecatedConfigurationApi()->readEntry("Look", "ChatUsrBgColor");
UsrFontColor = KaduApplication::instance()->deprecatedConfigurationApi()->readEntry("Look", "ChatUsrFontColor");
UsrNickColor = KaduApplication::instance()->deprecatedConfigurationApi()->readEntry("Look", "ChatUsrNickColor");
ContactStateChats = KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Chat", "ContactStateChats");
ContactStateWindowTitle = KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Chat", "ContactStateWindowTitle");
ContactStateWindowTitlePosition = KaduApplication::instance()->deprecatedConfigurationApi()->readNumEntry("Chat", "ContactStateWindowTitlePosition");
ContactStateWindowTitleComposingSyntax = KaduApplication::instance()->deprecatedConfigurationApi()->readEntry("Chat", "ContactStateWindowTitleComposingSyntax");
ChatBgFilled = KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Look", "ChatBgFilled");
ChatBgColor = KaduApplication::instance()->deprecatedConfigurationApi()->readColorEntry("Look", "ChatBgColor");
UseTransparency = KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Chat", "UseTransparency");
emit chatConfigurationUpdated();
......
......@@ -31,7 +31,7 @@ void ConfigFileDataManager::writeEntry(const QString &section, const QString &na
if (section.isEmpty() || name.isEmpty())
return;
KaduApplication::instance()->depreceatedConfigurationApi()->writeEntry(section, name, value.toString());
KaduApplication::instance()->deprecatedConfigurationApi()->writeEntry(section, name, value.toString());
}
QVariant ConfigFileDataManager::readEntry(const QString &section, const QString &name)
......@@ -39,7 +39,7 @@ QVariant ConfigFileDataManager::readEntry(const QString &section, const QString
if (section.isEmpty() || name.isEmpty())
return QVariant(QString());
return QVariant(KaduApplication::instance()->depreceatedConfigurationApi()->readEntry(section, name));
return QVariant(KaduApplication::instance()->deprecatedConfigurationApi()->readEntry(section, name));
}
......
......@@ -37,10 +37,10 @@ ConfigFileVariantWrapper::~ConfigFileVariantWrapper()
QVariant ConfigFileVariantWrapper::get(const QVariant &defaultValue) const
{
return KaduApplication::instance()->depreceatedConfigurationApi()->readEntry(Group, Name, defaultValue.toString());
return KaduApplication::instance()->deprecatedConfigurationApi()->readEntry(Group, Name, defaultValue.toString());
}
void ConfigFileVariantWrapper::set(const QVariant &value)
{
KaduApplication::instance()->depreceatedConfigurationApi()->writeEntry(Group, Name, value.toString());
KaduApplication::instance()->deprecatedConfigurationApi()->writeEntry(Group, Name, value.toString());
}
......@@ -57,7 +57,7 @@ MainConfigurationHolder::MainConfigurationHolder() :
void MainConfigurationHolder::configurationUpdated()
{
QString statusContainerType = KaduApplication::instance()->depreceatedConfigurationApi()->readEntry("General", "StatusContainerType", "Identity");
QString statusContainerType = KaduApplication::instance()->deprecatedConfigurationApi()->readEntry("General", "StatusContainerType", "Identity");
SetStatusMode newStatus = SetStatusPerIdentity;
if (statusContainerType == "Account")
......
......@@ -37,7 +37,7 @@ void NotifierConfigurationDataManager::writeEntry(const QString &section, const
if (section.isEmpty() || name.isEmpty())
return;
KaduApplication::instance()->depreceatedConfigurationApi()->writeEntry(section, QString("Event_") + EventName + name, value.toString());
KaduApplication::instance()->deprecatedConfigurationApi()->writeEntry(section, QString("Event_") + EventName + name, value.toString());
}
QVariant NotifierConfigurationDataManager::readEntry(const QString &section, const QString &name)
......@@ -45,7 +45,7 @@ QVariant NotifierConfigurationDataManager::readEntry(const QString &section, con
if (section.isEmpty() || name.isEmpty())
return QVariant(QString());
return KaduApplication::instance()->depreceatedConfigurationApi()->readEntry(section, QString("Event_") + EventName + name);
return KaduApplication::instance()->deprecatedConfigurationApi()->readEntry(section, QString("Event_") + EventName + name);
}
NotifierConfigurationDataManager * NotifierConfigurationDataManager::dataManagerForEvent(const QString &eventName)
......
......@@ -272,14 +272,14 @@ void ContactManager::removeDuplicateContacts()
uniqueContacts.insert(qMakePair(contact.contactAccount(), contact.id()), contact);
}
KaduApplication::instance()->depreceatedConfigurationApi()->writeEntry("General", "ContactsImportedFrom0_9", true);
KaduApplication::instance()->deprecatedConfigurationApi()->writeEntry("General", "ContactsImportedFrom0_9", true);
}
void ContactManager::loaded()
{
Manager<Contact>::loaded();
if (!KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("General", "ContactsImportedFrom0_9", false))
if (!KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("General", "ContactsImportedFrom0_9", false))
// delay it so that everything needed will be loaded when we call this method
QTimer::singleShot(0, this, SLOT(removeDuplicateContacts()));
}
......
......@@ -185,7 +185,7 @@ bool ContactShared::shouldStore()
return false;
// we dont need data for non-roster contacts only from 4 version of sql schema
if (KaduApplication::instance()->depreceatedConfigurationApi()->readNumEntry("History", "Schema", 0) < 4)
if (KaduApplication::instance()->deprecatedConfigurationApi()->readNumEntry("History", "Schema", 0) < 4)
return true;
return !isAnonymous() || rosterEntry()->requiresSynchronization() || customProperties()->shouldStore();
......
This diff is collapsed.
......@@ -142,7 +142,7 @@ QStringList FileTransferActions::selectFilesToSend()
{
return QFileDialog::getOpenFileNames(
0, tr("Select file location"),
KaduApplication::instance()->depreceatedConfigurationApi()->readEntry("Network", "LastUploadDirectory"));
KaduApplication::instance()->deprecatedConfigurationApi()->readEntry("Network", "LastUploadDirectory"));
}
void FileTransferActions::selectFilesAndSend(const ContactSet &contacts)
......
......@@ -169,7 +169,7 @@ void FileTransferManager::acceptFileTransfer(FileTransfer transfer)
{
if (fileName.isEmpty())
fileName = QFileDialog::getSaveFileName(Core::instance()->kaduWindow(), tr("Select file location"),
KaduApplication::instance()->depreceatedConfigurationApi()->readEntry("Network", "LastDownloadDirectory") + transfer.remoteFileName(),
KaduApplication::instance()->deprecatedConfigurationApi()->readEntry("Network", "LastDownloadDirectory") + transfer.remoteFileName(),
QString(), 0, QFileDialog::DontConfirmOverwrite);
if (fileName.isEmpty())
......@@ -180,7 +180,7 @@ void FileTransferManager::acceptFileTransfer(FileTransfer transfer)
return;
}
KaduApplication::instance()->depreceatedConfigurationApi()->writeEntry("Network", "LastDownloadDirectory", QFileInfo(fileName).absolutePath() + '/');
KaduApplication::instance()->deprecatedConfigurationApi()->writeEntry("Network", "LastDownloadDirectory", QFileInfo(fileName).absolutePath() + '/');
fi.setFile(fileName);
if (!haveFileName && fi.exists())
......
......@@ -29,12 +29,12 @@
QKeySequence HotKey::shortCutFromFile(const QString &groupname, const QString &name)
{
return QKeySequence::fromString(KaduApplication::instance()->depreceatedConfigurationApi()->readEntry(groupname, name), QKeySequence::PortableText);
return QKeySequence::fromString(KaduApplication::instance()->deprecatedConfigurationApi()->readEntry(groupname, name), QKeySequence::PortableText);
}
bool HotKey::shortCut(QKeyEvent *e, const QString &groupname, const QString &name)
{
QString config = KaduApplication::instance()->depreceatedConfigurationApi()->readEntry(groupname, name);
QString config = KaduApplication::instance()->deprecatedConfigurationApi()->readEntry(groupname, name);
return !config.isEmpty() && config == keyEventToString(e);
}
......
......@@ -63,7 +63,7 @@ BuddyInfoPanel::~BuddyInfoPanel()
void BuddyInfoPanel::configurationUpdated()
{
setUserFont(KaduApplication::instance()->depreceatedConfigurationApi()->readFontEntry("Look", "PanelFont").toString(), true);
setUserFont(KaduApplication::instance()->deprecatedConfigurationApi()->readFontEntry("Look", "PanelFont").toString(), true);
update();
}
......@@ -79,7 +79,7 @@ void BuddyInfoPanel::update()
if (Core::instance()->isClosing())
return;
QFont font = KaduApplication::instance()->depreceatedConfigurationApi()->readFontEntry("Look", "PanelFont");
QFont font = KaduApplication::instance()->deprecatedConfigurationApi()->readFontEntry("Look", "PanelFont");
QString fontFamily = font.family();
QString fontSize;
if (font.pointSize() > 0)
......@@ -90,10 +90,10 @@ void BuddyInfoPanel::update()
QString fontStyle = font.italic() ? "italic" : "normal";
QString fontWeight = font.bold() ? "bold" : "normal";
QString textDecoration = font.underline() ? "underline" : "none";
QString fontColor = KaduApplication::instance()->depreceatedConfigurationApi()->readColorEntry("Look", "InfoPanelFgColor").name();
bool backgroundFilled = KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Look", "InfoPanelBgFilled");
QString fontColor = KaduApplication::instance()->deprecatedConfigurationApi()->readColorEntry("Look", "InfoPanelFgColor").name();
bool backgroundFilled = KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Look", "InfoPanelBgFilled");
if (backgroundFilled)
BackgroundColor = KaduApplication::instance()->depreceatedConfigurationApi()->readColorEntry("Look", "InfoPanelBgColor").name();
BackgroundColor = KaduApplication::instance()->deprecatedConfigurationApi()->readColorEntry("Look", "InfoPanelBgColor").name();
else
BackgroundColor = "transparent";
......@@ -130,11 +130,11 @@ void BuddyInfoPanel::update()
"</html>"
).arg(fontColor, fontStyle, fontWeight, fontSize, fontFamily, textDecoration, BackgroundColor, "%1");
QString syntaxFile = KaduApplication::instance()->depreceatedConfigurationApi()->readEntry("Look", "InfoPanelSyntaxFile", "ultr");
QString syntaxFile = KaduApplication::instance()->deprecatedConfigurationApi()->readEntry("Look", "InfoPanelSyntaxFile", "ultr");
if (syntaxFile == "default")
{
syntaxFile = "Old Default";
KaduApplication::instance()->depreceatedConfigurationApi()->writeEntry("Look", "InfoPanelSyntaxFile", syntaxFile);
KaduApplication::instance()->deprecatedConfigurationApi()->writeEntry("Look", "InfoPanelSyntaxFile", syntaxFile);
}
Syntax = SyntaxList::readSyntax("infopanel", syntaxFile,
......@@ -142,7 +142,7 @@ void BuddyInfoPanel::update()
"<div align=\"left\"> [<b>%a</b>][ (%u)] [<br>tel.: %m][<br>IP: %i]</div></td></tr></table> <hr> <b>%s</b> [<br>%d]");
displayItem(Item);
if (KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Look", "PanelVerticalScrollbar"))
if (KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Look", "PanelVerticalScrollbar"))
page()->mainFrame()->setScrollBarPolicy(Qt::Vertical, Qt::ScrollBarAsNeeded);
else
page()->mainFrame()->setScrollBarPolicy(Qt::Vertical, Qt::ScrollBarAlwaysOff);
......
......@@ -47,7 +47,7 @@ ChatEditBoxSizeManager::~ChatEditBoxSizeManager()
void ChatEditBoxSizeManager::configurationUpdated()
{
setCommonHeight(KaduApplication::instance()->depreceatedConfigurationApi()->readNumEntry("Chat", "ChatEditBoxHeight", 0));
setCommonHeight(KaduApplication::instance()->deprecatedConfigurationApi()->readNumEntry("Chat", "ChatEditBoxHeight", 0));
}
void ChatEditBoxSizeManager::setCommonHeight(int height)
......@@ -55,7 +55,7 @@ void ChatEditBoxSizeManager::setCommonHeight(int height)
if (height != CommonHeight)
{
CommonHeight = height;
KaduApplication::instance()->depreceatedConfigurationApi()->writeEntry("Chat", "ChatEditBoxHeight", CommonHeight);
KaduApplication::instance()->deprecatedConfigurationApi()->writeEntry("Chat", "ChatEditBoxHeight", CommonHeight);
emit commonHeightChanged(CommonHeight);
}
}
......
......@@ -228,13 +228,13 @@ void ChatEditBox::openInsertImageDialog()
return;
// QTBUG-849
QString selectedFile = QFileDialog::getOpenFileName(this, tr("Insert image"), KaduApplication::instance()->depreceatedConfigurationApi()->readEntry("Chat", "LastImagePath"),
QString selectedFile = QFileDialog::getOpenFileName(this, tr("Insert image"), KaduApplication::instance()->deprecatedConfigurationApi()->readEntry("Chat", "LastImagePath"),
tr("Images (*.png *.PNG *.jpg *.JPG *.jpeg *.JPEG *.gif *.GIF *.bmp *.BMP);;All Files (*)"));
if (!selectedFile.isEmpty())
{
QFileInfo f(selectedFile);
KaduApplication::instance()->depreceatedConfigurationApi()->writeEntry("Chat", "LastImagePath", f.absolutePath());
KaduApplication::instance()->deprecatedConfigurationApi()->writeEntry("Chat", "LastImagePath", f.absolutePath());
if (!f.isReadable())
{
......
......@@ -247,7 +247,7 @@ void ChatWidgetActions::configurationUpdated()
void ChatWidgetActions::autoSendActionCreated(Action *action)
{
action->setChecked(KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Chat", "AutoSend"));
action->setChecked(KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Chat", "AutoSend"));
}
void ChatWidgetActions::clearChatActionCreated(Action *action)
......@@ -276,7 +276,7 @@ void ChatWidgetActions::sendActionCreated(Action *action)
void ChatWidgetActions::autoSendActionCheck()
{
bool check = KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Chat", "AutoSend");
bool check = KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Chat", "AutoSend");
foreach (Action *action, AutoSend->actions())
action->setChecked(check);
}
......@@ -289,7 +289,7 @@ void ChatWidgetActions::autoSendActionActivated(QAction *sender, bool toggled)
if (!chatEditBox)
return;
KaduApplication::instance()->depreceatedConfigurationApi()->writeEntry("Chat", "AutoSend", toggled);
KaduApplication::instance()->deprecatedConfigurationApi()->writeEntry("Chat", "AutoSend", toggled);
chatEditBox->setAutoSend(toggled);
autoSendActionCheck();
}
......
......@@ -43,14 +43,14 @@ void ChatWidgetMessageHandlerConfigurator::configurationUpdated()
void ChatWidgetMessageHandlerConfigurator::createDefaultConfiguration() const
{
KaduApplication::instance()->depreceatedConfigurationApi()->addVariable("Chat", "OpenChatOnMessage", false);
KaduApplication::instance()->depreceatedConfigurationApi()->addVariable("Chat", "OpenChatOnMessageWhenOnline", true);
KaduApplication::instance()->deprecatedConfigurationApi()->addVariable("Chat", "OpenChatOnMessage", false);
KaduApplication::instance()->deprecatedConfigurationApi()->addVariable("Chat", "OpenChatOnMessageWhenOnline", true);
}
ChatWidgetMessageHandlerConfiguration ChatWidgetMessageHandlerConfigurator::loadConfiguration() const
{
auto configuration = ChatWidgetMessageHandlerConfiguration();
configuration.setOpenChatOnMessage(KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Chat", "OpenChatOnMessage", false));
configuration.setOpenChatOnMessageOnlyWhenOnline(KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Chat", "OpenChatOnMessageWhenOnline", true));
configuration.setOpenChatOnMessage(KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Chat", "OpenChatOnMessage", false));
configuration.setOpenChatOnMessageOnlyWhenOnline(KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Chat", "OpenChatOnMessageWhenOnline", true));
return configuration;
}
......@@ -534,7 +534,7 @@ void ChatWidget::clearChatWindow()
dialog->addButton(QMessageBox::Yes, tr("Clear chat window"));
dialog->addButton(QMessageBox::No, tr("Cancel"));
if (!KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Chat", "ConfirmChatClear") || dialog->ask())
if (!KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Chat", "ConfirmChatClear") || dialog->ask())
{
MessagesView->clearMessages();
MessagesView->setForcePruneDisabled(false);
......
......@@ -55,7 +55,7 @@ ConfigSection::~ConfigSection()
blockSignals(false);
emit destroyed(this);
KaduApplication::instance()->depreceatedConfigurationApi()->writeEntry("General", "ConfigurationWindow_" + MyConfigurationWidget->name() + '_' + Name,
KaduApplication::instance()->deprecatedConfigurationApi()->writeEntry("General", "ConfigurationWindow_" + MyConfigurationWidget->name() + '_' + Name,
TabWidget->tabText(TabWidget->currentIndex()));
// delete them here, since they manually delete child widgets of our TabWidget
......@@ -89,7 +89,7 @@ void ConfigSection::activate()
if (Activated)
return;
QString tab = KaduApplication::instance()->depreceatedConfigurationApi()->readEntry("General", "ConfigurationWindow_" + MyConfigurationWidget->name() + '_' + Name);
QString tab = KaduApplication::instance()->deprecatedConfigurationApi()->readEntry("General", "ConfigurationWindow_" + MyConfigurationWidget->name() + '_' + Name);
if (ConfigTabs.contains(tab))
TabWidget->setCurrentWidget(ConfigTabs.value(tab)->widget());
Activated = true;
......
......@@ -96,7 +96,7 @@ ConfigurationWidget::ConfigurationWidget(ConfigurationWindowDataManager *dataMan
ConfigurationWidget::~ConfigurationWidget()
{
if (SectionsListWidget->currentItem())
KaduApplication::instance()->depreceatedConfigurationApi()->writeEntry("General", "ConfigurationWindow_" + Name, SectionsListWidget->currentItem()->text());
KaduApplication::instance()->deprecatedConfigurationApi()->writeEntry("General", "ConfigurationWindow_" + Name, SectionsListWidget->currentItem()->text());
disconnect(SectionsListWidget, 0, this, 0);
......@@ -110,7 +110,7 @@ ConfigurationWidget::~ConfigurationWidget()
void ConfigurationWidget::init()
{
QString lastSection = KaduApplication::instance()->depreceatedConfigurationApi()->readEntry("General", "ConfigurationWindow_" + Name);
QString lastSection = KaduApplication::instance()->deprecatedConfigurationApi()->readEntry("General", "ConfigurationWindow_" + Name);
if (ConfigSections.contains(lastSection))
ConfigSections.value(lastSection)->activate();
else if (SectionsListWidget->count() > 0)
......
......@@ -42,9 +42,9 @@ void GroupTabBarConfigurator::setGroupTabBar(GroupTabBar *groupTabBar)
void GroupTabBarConfigurator::createDefaultConfiguration()
{
KaduApplication::instance()->depreceatedConfigurationApi()->addVariable("Look", "ShowGroupAll", true);
KaduApplication::instance()->depreceatedConfigurationApi()->addVariable("Look", "ShowGroupTabUngroupped", false);
KaduApplication::instance()->depreceatedConfigurationApi()->addVariable("Look", "DisplayGroupTabs", true);
KaduApplication::instance()->deprecatedConfigurationApi()->addVariable("Look", "ShowGroupAll", true);
KaduApplication::instance()->deprecatedConfigurationApi()->addVariable("Look", "ShowGroupTabUngroupped", false);
KaduApplication::instance()->deprecatedConfigurationApi()->addVariable("Look", "DisplayGroupTabs", true);
}
void GroupTabBarConfigurator::configurationUpdated()
......@@ -59,10 +59,10 @@ GroupTabBarConfiguration GroupTabBarConfigurator::loadConfiguration() const
{
auto configuration = GroupTabBarConfiguration();
configuration.setDisplayGroupTabs(KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Look", "DisplayGroupTabs", true));
configuration.setShowGroupTabEverybody(KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Look", "ShowGroupAll", true));
configuration.setAlwaysShowGroupTabUngroupped(KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Look", "AlwaysShowGroupTabUngroupped", true));
configuration.setCurrentGroupTab(KaduApplication::instance()->depreceatedConfigurationApi()->readNumEntry("Look", "CurrentGroupTab", 0));
configuration.setDisplayGroupTabs(KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Look", "DisplayGroupTabs", true));
configuration.setShowGroupTabEverybody(KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Look", "ShowGroupAll", true));
configuration.setAlwaysShowGroupTabUngroupped(KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Look", "AlwaysShowGroupTabUngroupped", true));
configuration.setCurrentGroupTab(KaduApplication::instance()->deprecatedConfigurationApi()->readNumEntry("Look", "CurrentGroupTab", 0));
configuration.setGroupFilters(loadGroupFilters(configuration.showGroupTabEverybody()));
return configuration;
......@@ -74,7 +74,7 @@ void GroupTabBarConfigurator::storeConfiguration()
return;
auto configuration = ConfigurableGroupTabBar.data()->configuration();
KaduApplication::instance()->depreceatedConfigurationApi()->writeEntry("Look", "CurrentGroupTab", configuration.currentGroupTab());
KaduApplication::instance()->deprecatedConfigurationApi()->writeEntry("Look", "CurrentGroupTab", configuration.currentGroupTab());
storeGroupFilters(configuration.groupFilters());
......@@ -117,8 +117,8 @@ QVector<GroupFilter> GroupTabBarConfigurator::import_0_12_groupFilters(bool show
{
auto result = QVector<GroupFilter>();
auto position = showGroupTabEverybody
? KaduApplication::instance()->depreceatedConfigurationApi()->readNumEntry("Look", "AllGroupTabPosition", 0)
: KaduApplication::instance()->depreceatedConfigurationApi()->readNumEntry("Look", "UngroupedGroupTabPosition", 0);
? KaduApplication::instance()->deprecatedConfigurationApi()->readNumEntry("Look", "AllGroupTabPosition", 0)
: KaduApplication::instance()->deprecatedConfigurationApi()->readNumEntry("Look", "UngroupedGroupTabPosition", 0);
auto groups = GroupManager::instance()->items().toList();
qStableSort(groups.begin(), groups.end(), [](const Group &a, const Group &b){ return a.tabPosition() < b.tabPosition(); });
......
......@@ -57,7 +57,7 @@ KaduTreeView::~KaduTreeView()
void KaduTreeView::configurationUpdated()
{
bool showExpandingControl = KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Look", "ShowExpandingControl", false);
bool showExpandingControl = KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Look", "ShowExpandingControl", false);
if (rootIsDecorated() && !showExpandingControl)
collapseAll();
......@@ -81,7 +81,7 @@ void KaduTreeView::updateBackground()
style.append("QTreeView::branch:has-siblings:!adjoins-item { border-image: none; image: none }");
style.append("QTreeView::branch:has-siblings:adjoins-item { border-image: none; image: none }");
style.append("QTreeView::branch:has-childres:!has-siblings:adjoins-item { border-image: none; image: none }");
if (KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Look", "AlignUserboxIconsTop"))
if (KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Look", "AlignUserboxIconsTop"))
{
style.append("QTreeView::branch:has-children:!has-siblings:closed, QTreeView::branch:closed:has-children:has-siblings "
"{ border-image: none; image: url(" + KaduIcon("kadu_icons/stylesheet-branch-closed", "16x16").fullPath() + "); margin-top: 4px; image-position: top }");
......
......@@ -280,7 +280,7 @@ void KaduWebView::saveImage()
QPointer<QFileDialog> fd = new QFileDialog(this);
fd->setFileMode(QFileDialog::AnyFile);
fd->setAcceptMode(QFileDialog::AcceptSave);
fd->setDirectory(KaduApplication::instance()->depreceatedConfigurationApi()->readEntry("Chat", "LastImagePath"));
fd->setDirectory(KaduApplication::instance()->deprecatedConfigurationApi()->readEntry("Chat", "LastImagePath"));
fd->setNameFilter(QString("%1 (*%2)").arg(QCoreApplication::translate("ImageDialog", "Images"), fileExt));
fd->setLabelText(QFileDialog::FileName, imageFullPath.section('/', -1));
fd->setWindowTitle(tr("Save image"));
......@@ -334,7 +334,7 @@ void KaduWebView::saveImage()
}
}
KaduApplication::instance()->depreceatedConfigurationApi()->writeEntry("Chat", "LastImagePath", fd->directory().absolutePath());
KaduApplication::instance()->deprecatedConfigurationApi()->writeEntry("Chat", "LastImagePath", fd->directory().absolutePath());
} while (false);
delete fd.data();
......
......@@ -88,12 +88,12 @@ void RosterWidget::createGui()
void RosterWidget::configurationUpdated()
{
QString bgColor = KaduApplication::instance()->depreceatedConfigurationApi()->readColorEntry("Look","UserboxBgColor").name();
QString alternateBgColor = KaduApplication::instance()->depreceatedConfigurationApi()->readColorEntry("Look","UserboxAlternateBgColor").name();
QString bgColor = KaduApplication::instance()->deprecatedConfigurationApi()->readColorEntry("Look","UserboxBgColor").name();
QString alternateBgColor = KaduApplication::instance()->deprecatedConfigurationApi()->readColorEntry("Look","UserboxAlternateBgColor").name();
if (CompositingEnabled && KaduApplication::instance()->depreceatedConfigurationApi()->readBoolEntry("Look", "UserboxTransparency"))
if (CompositingEnabled && KaduApplication::instance()->deprecatedConfigurationApi()->readBoolEntry("Look", "UserboxTransparency"))
{