Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 18612447 authored by Stephan Kulow's avatar Stephan Kulow

avoid deprecated constructors

svn path=/trunk/koffice/; revision=564123
parent 1adb731d
......@@ -543,9 +543,8 @@ void DocumentWrapper::createActions( KActionCollection* collection )
m_insertSymbolAction = new KAction(KIcon("key_enter"), i18n("Insert Symbol"), collection, "formula_insertsymbol");
connect(m_insertSymbolAction, SIGNAL(triggered(bool) ), SLOT(insertSymbol()));
m_insertSymbolAction->setShortcut(/*CTRL + Qt::Key_I*/0);
m_symbolNamesAction = new SymbolAction(i18n("Symbol Names"),
0, this, SLOT(symbolNames()),
collection, "formula_symbolnames");
m_symbolNamesAction = new SymbolAction(i18n("Symbol Names"), collection, "formula_symbolnames");
connect(m_symbolNamesAction, SIGNAL(triggered(bool)), SLOT(symbolNames()));
QStringList ff;
ff.append( i18n( "Normal" ) );
......
......@@ -103,18 +103,10 @@ void SymbolComboItem::paint( QPainter *p )
/*
* The symbol action *
*/
SymbolAction::SymbolAction( KActionCollection* parent, const char* name )
: KSelectAction( parent, name )
SymbolAction::SymbolAction( const QString &text, KActionCollection* parent, const char* name )
: KSelectAction( text, parent, name )
{
setEditable( FALSE );
}
SymbolAction::SymbolAction( const QString& text, const KShortcut& cut,
const QObject* receiver, const char* slot,
KActionCollection* parent, const char* name )
: KSelectAction( text, cut, receiver, slot, parent, name )
{
setEditable( FALSE );
setEditable( false );
}
void SymbolAction::plug( QWidget* w, int /*index*/ )
......
......@@ -32,10 +32,7 @@ KFORMULA_NAMESPACE_BEGIN
class SymbolAction : public KSelectAction
{
public:
SymbolAction( KActionCollection* parent = 0, const char* name = 0 );
SymbolAction( const QString& text, const KShortcut& cut,
const QObject* receiver, const char* slot, KActionCollection* parent,
const char* name = 0 );
SymbolAction( const QString& text, KActionCollection* parent, const char* name = 0 );
void plug( QWidget*, int index = -1 );
void setSymbols( const QStringList&, const QList<QFont>&, const QVector<QChar>& );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment