[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kexi (silent)
From: Jarosław Staniek <staniek () kde ! org>
Date: 2009-10-31 13:16:55
Message-ID: 1256995015.524098.20732.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1043002 by staniek:
*remove warnings and change some QStrings to QByteArrays
SVN_SILENT
M +5 -3 formeditor/factories/stdwidgetfactory.cpp
M +3 -3 formeditor/form.cpp
M +1 -1 widget/tableview/kexicelleditorfactory.h
--- trunk/koffice/kexi/formeditor/factories/stdwidgetfactory.cpp #1043001:1043002
@@ -147,7 +147,7 @@
void EditRichTextAction::slotTriggered()
{
- const QString classname( m_receiver->metaObject()->className() );
+ const QByteArray classname( m_receiver->metaObject()->className() );
QString text;
if (classname == "KTextEdit") {
KTextEdit* te = dynamic_cast<KTextEdit*>(m_receiver);
@@ -483,7 +483,7 @@
{
QWidget *w = 0;
QString text(container->form()->library()->textForWidgetName(n, c));
- const bool designMode = options & KFormDesigner::WidgetFactory::DesignViewMode;
+//2.0 const bool designMode = options & KFormDesigner::WidgetFactory::DesignViewMode;
if (c == "QLabel")
w = new QLabel(text, p);
@@ -563,6 +563,8 @@
StdWidgetFactory::previewWidget(const QByteArray &classname,
QWidget *widget, KFormDesigner::Container *)
{
+ Q_UNUSED(classname);
+ Q_UNUSED(widget);
/* moved to FormWidgetInterface
if (classname == "Spring") {
dynamic_cast<Spring*>(widget)->setPreviewMode();
@@ -708,7 +710,7 @@
const QString &text, QString &oldText)
{
//2.0 QByteArray n = WidgetFactory::widget()->metaObject()->className();
- const QString n(widget->metaObject()->className());
+ const QByteArray n(widget->metaObject()->className());
//2.0 QWidget *w = WidgetFactory::widget();
if (n == "KIntSpinBox") {
oldText = QString::number(dynamic_cast<KIntSpinBox*>(widget)->value());
--- trunk/koffice/kexi/formeditor/form.cpp #1043001:1043002
@@ -1306,7 +1306,7 @@
if (option == DontExecuteCommand) {
command->blockRedoOnce();
}
- const int count = d->undoStack.count();
+ //const int count = d->undoStack.count();
d->undoStack.push(command);
/* if ((count + 1) == d->undoStack.count()) {
return false;
@@ -2307,7 +2307,7 @@
const bool enableLayout = multiple || w == container->widget();
//unused... m_menuWidget = w;
- QString n = container->form()->library()->displayName(w->metaObject()->className());
+ QString n( container->form()->library()->displayName(w->metaObject()->className()) );
//set title
QIcon icon;
@@ -3467,7 +3467,7 @@
&& d->inlineEditor && d->inlineEditorContainer)
{
// click outside editor --> cancel editing
- Container *cont = d->inlineEditorContainer;
+ //Container *cont = d->inlineEditorContainer;
resetInlineEditor();
return d->inlineEditorContainer->eventFilter(obj, ev);
}
--- trunk/koffice/kexi/widget/tableview/kexicelleditorfactory.h #1043001:1043002
@@ -66,7 +66,7 @@
public:
KexiCellEditorFactoryItem();
virtual ~KexiCellEditorFactoryItem();
- QString className() {
+ QString className() const {
return m_className;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic