X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=gui%2Fglsledit.cpp;h=b73f0980bb103962b8d1c40e8e2763d489163318;hb=dc993d935966d1c48b3fa03e17339ee891d7f734;hp=5c77882e65122e0b7008c327cbfe9e874fb70902;hpb=fbd67a019a5a376f3c74ca3dae8c87bf353b8d28;p=apitrace diff --git a/gui/glsledit.cpp b/gui/glsledit.cpp index 5c77882..b73f098 100644 --- a/gui/glsledit.cpp +++ b/gui/glsledit.cpp @@ -961,4 +961,50 @@ void GLSLEdit::mark(const QString &str, Qt::CaseSensitivity sens) d_ptr->highlighter->mark(str, sens); } +void GLSLEdit::indent() +{ + QTemporaryFile file(QLatin1String("shader.glsl")); + if (!file.open()) { + qDebug()<<"Couldn't create temporary file "<addAction(tr("Indent Code"), this, SLOT(indent())); + + menu->exec(e->globalPos()); + delete menu; +} + #include "glsledit.moc"