mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-17 01:54:42 +00:00
Two attempt to optimize the managment of the updates and focus changes in the glarea
This commit is contained in:
parent
c85bd6054b
commit
809fd2903f
@ -780,8 +780,8 @@ void GLArea::keyPressEvent ( QKeyEvent * e )
|
||||
|
||||
void GLArea::mousePressEvent(QMouseEvent*e)
|
||||
{
|
||||
e->accept();
|
||||
setFocus();
|
||||
e->accept();
|
||||
if(!this->hasFocus()) this->setFocus();
|
||||
|
||||
if(!isRaster() || isRaster())
|
||||
{
|
||||
|
||||
@ -238,14 +238,14 @@ void LayerDialog::updateLog(GLLogStream &log)
|
||||
QString preFilter = "<font face=\"courier\" size=2 color=\"black\">" ;
|
||||
|
||||
QString post = "</font>";
|
||||
|
||||
QString logText;
|
||||
foreach(logElem, logStringList){
|
||||
QString logText = logElem.second;
|
||||
logText += logElem.second;
|
||||
if(logElem.first == GLLogStream::SYSTEM) logText = preSystem + logText + post;
|
||||
if(logElem.first == GLLogStream::WARNING) logText = preWarn + logText + post;
|
||||
if(logElem.first == GLLogStream::FILTER) logText = preFilter + logText + post;
|
||||
ui->logPlainTextEdit->appendHtml(logText);
|
||||
}
|
||||
ui->logPlainTextEdit->appendHtml(logText);
|
||||
}
|
||||
|
||||
void LayerDialog::updateTable()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user