Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 7974 → Rev 7975

/branches/Version13x/Scribus/scribus/plugins/scriptplugin/pconsole.cpp
78,6 → 78,8
commandEdit->setSizePolicy(commandEditSize);
// install syntax highlighter.
SyntaxHighlighter *sxHigh = new SyntaxHighlighter(commandEdit);
//remove that unused warning!
sxHigh->currentParagraph();
 
outputEdit = new QTextEdit(splitter, "outputEdit" );
outputEdit->setTextFormat(Qt::PlainText);
118,7 → 120,8
*/
PythonConsole::~PythonConsole()
{
// no need to delete child widgets, Qt does it all for us
//delete the highlighter
delete commandEdit->syntaxHighlighter();
}
 
void PythonConsole::setFonts()
/branches/Version13x/Scribus/scribus/plugins/short-words/swprefsgui.cpp
63,6 → 63,8
}
okButton->setEnabled(false);
SWSyntaxHighlighter *sxHigh = new SWSyntaxHighlighter(cfgEdit);
//remove that unused warning!
sxHigh->currentParagraph();
 
// signals
connect(okButton, SIGNAL(clicked()), this, SLOT(okButton_pressed()));
70,6 → 72,12
connect(cfgEdit, SIGNAL(textChanged()), this, SLOT(cfgEdit_changed()));
}
 
SWPrefsGui::~SWPrefsGui()
{
//delete the highlighter
delete cfgEdit->syntaxHighlighter();
}
 
/*
* Sets the strings of the subwidgets using the current
* language.
/branches/Version13x/Scribus/scribus/plugins/short-words/swprefsgui.h
33,7 → 33,7
 
public:
SWPrefsGui(QWidget* parent);
~SWPrefsGui(){};
~SWPrefsGui();
 
QLabel* titleLabel;
QTextEdit* cfgEdit;