Changeset View
Changeset View
Standalone View
Standalone View
src/TerminalDisplay.cpp
Show First 20 Lines • Show All 2111 Lines • ▼ Show 20 Line(s) | |||||
2112 | 2112 | | |||
2113 | //showEvent and hideEvent are reimplemented here so that it appears to other classes that the | 2113 | //showEvent and hideEvent are reimplemented here so that it appears to other classes that the | ||
2114 | //display has been resized when the display is hidden or shown. | 2114 | //display has been resized when the display is hidden or shown. | ||
2115 | // | 2115 | // | ||
2116 | //TODO: Perhaps it would be better to have separate signals for show and hide instead of using | 2116 | //TODO: Perhaps it would be better to have separate signals for show and hide instead of using | ||
2117 | //the same signal as the one for a content size change | 2117 | //the same signal as the one for a content size change | ||
2118 | void TerminalDisplay::showEvent(QShowEvent*) | 2118 | void TerminalDisplay::showEvent(QShowEvent*) | ||
2119 | { | 2119 | { | ||
2120 | propagateSize(); | ||||
2120 | emit changedContentSizeSignal(_contentRect.height(), _contentRect.width()); | 2121 | emit changedContentSizeSignal(_contentRect.height(), _contentRect.width()); | ||
2121 | } | 2122 | } | ||
2122 | void TerminalDisplay::hideEvent(QHideEvent*) | 2123 | void TerminalDisplay::hideEvent(QHideEvent*) | ||
2123 | { | 2124 | { | ||
2124 | emit changedContentSizeSignal(_contentRect.height(), _contentRect.width()); | 2125 | emit changedContentSizeSignal(_contentRect.height(), _contentRect.width()); | ||
2125 | } | 2126 | } | ||
2126 | 2127 | | |||
2127 | void TerminalDisplay::setMargin(int margin) | 2128 | void TerminalDisplay::setMargin(int margin) | ||
▲ Show 20 Lines • Show All 1839 Lines • Show Last 20 Lines |