aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2014-01-20 01:05:47 (GMT)
committerChristoph Cullmann <cullmann@kde.org>2014-01-20 01:05:47 (GMT)
commitb1d9bea7951ee8373580e6c18e3379fa6ee5c49c (patch)
treecbb1f4ba5fbcb41f8d56dd57be2c4c41fed430e8
parentab4e7210cce190515e14c77696882dcf4b4715d7 (diff)
more ported
-rw-r--r--addons/kate/katesql/katesqlview.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/addons/kate/katesql/katesqlview.cpp b/addons/kate/katesql/katesqlview.cpp
index 56d2181..bb06dff 100644
--- a/addons/kate/katesql/katesqlview.cpp
+++ b/addons/kate/katesql/katesqlview.cpp
@@ -160,7 +160,7 @@ void KateSQLView::slotSQLMenuAboutToShow()
{
qDeleteAll( m_connectionsGroup->actions() );
- QMenu *sqlMenu = (QMenu*)factory()->container("SQL", this);
+ QMenu *sqlMenu = (QMenu*)factory()->container(QLatin1String ("SQL"), this);
QAction *before = action("query_run");
QAbstractItemModel *model = m_manager->connectionModel();
@@ -195,7 +195,7 @@ void KateSQLView::slotConnectionSelectedFromMenu(QAction *action)
void KateSQLView::slotConnectionChanged(const QString &connection)
{
- stateChanged("has_connection_selected", (connection.isEmpty()) ? KXMLGUIClient::StateReverse : KXMLGUIClient::StateNoReverse);
+ stateChanged(QLatin1String ("has_connection_selected"), (connection.isEmpty()) ? KXMLGUIClient::StateReverse : KXMLGUIClient::StateNoReverse);
m_schemaBrowserWidget->schemaWidget()->buildTree(connection);
}
@@ -257,12 +257,12 @@ void KateSQLView::slotConnectionCreate()
return;
for (int i = 1; QSqlDatabase::contains(c.name); i++)
- c.name = QString("%1 (%2)").arg(c.name).arg(i);
+ c.name = QString::fromLatin1("%1 (%2)").arg(c.name).arg(i);
m_manager->createConnection(c);
if (m_manager->storeCredentials(c) != 0)
- kWarning() << "Connection credentials not saved";
+ qDebug() << "Connection credentials not saved";
}
@@ -287,7 +287,7 @@ void KateSQLView::slotConnectionEdit()
m_manager->createConnection(c);
if (m_manager->storeCredentials(c) != 0)
- kWarning() << "Connection credentials not saved";
+ qDebug() << "Connection credentials not saved";
}