Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 7975 → Rev 7974

/branches/Version13x/Scribus/scribus/plugins/scriptplugin/pconsole.cpp
78,8 → 78,6
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);
120,8 → 118,7
*/
PythonConsole::~PythonConsole()
{
//delete the highlighter
delete commandEdit->syntaxHighlighter();
// no need to delete child widgets, Qt does it all for us
}
 
void PythonConsole::setFonts()
/branches/Version13x/Scribus/scribus/plugins/short-words/swprefsgui.cpp
63,8 → 63,6
}
okButton->setEnabled(false);
SWSyntaxHighlighter *sxHigh = new SWSyntaxHighlighter(cfgEdit);
//remove that unused warning!
sxHigh->currentParagraph();
 
// signals
connect(okButton, SIGNAL(clicked()), this, SLOT(okButton_pressed()));
72,12 → 70,6
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;