Skip to content

Python console minor issues#1513

Merged
dictoon merged 6 commits intoappleseedhq:masterfrom
glebmish:python-console-minor-issues
Jul 9, 2017
Merged

Python console minor issues#1513
dictoon merged 6 commits intoappleseedhq:masterfrom
glebmish:python-console-minor-issues

Conversation

@glebmish
Copy link
Copy Markdown
Contributor

@glebmish glebmish commented Jul 8, 2017

resolved issues #1474, #1478, #1500 and some other that were not tracked

namespace appleseed {
namespace studio {

class FontSizeChangeable
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could call this class ZoomablePlainTextEdit?


void PythonConsoleWidget::slot_change_exec_selection_button_state()
{
bool is_enabled = m_input->textCursor().selection().isEmpty();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make const

insert_spaces(4);
else
{
if (event->key() == Qt::Key_Return || event->key() == Qt::Key_Enter)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you find the root cause of the problem causing Shift+Enter inserting "lines within the line"?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think shift+enter insert something like soft return in Microsoft Word (https://www.computerhope.com/jargon/s/softretu.htm) but I can't find anything in docs

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I've read it too. It's similar to how I solved it but my solution is simpler. I just unset shift modifier in case shift+enter is pressed

@dictoon
Copy link
Copy Markdown
Member

dictoon commented Jul 8, 2017

Very nice work!

@glebmish glebmish force-pushed the python-console-minor-issues branch from dcc3ad7 to 84451e6 Compare July 9, 2017 17:03
// THE SOFTWARE.
//

#ifndef APPLESEED_STUDIO_MAINWINDOW_PYTHONCONSOLE_FONTSIZECHANGEABLE_H
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update.

@glebmish glebmish force-pushed the python-console-minor-issues branch from 84451e6 to 02d32f9 Compare July 9, 2017 17:08
@dictoon dictoon merged commit b5a0e88 into appleseedhq:master Jul 9, 2017
@glebmish glebmish deleted the python-console-minor-issues branch August 1, 2017 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants