Move standard buttons to lib_ui.
This commit is contained in:
@@ -46,7 +46,7 @@ void BackButton::paintEvent(QPaintEvent *e) {
|
||||
|
||||
void BackButton::onStateChanged(State was, StateChangeSource source) {
|
||||
if (isDown() && !(was & StateFlag::Down)) {
|
||||
emit clicked();
|
||||
clicked(Qt::KeyboardModifiers(), Qt::LeftButton);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -38,9 +38,7 @@ protected:
|
||||
int resizeGetHeight(int newWidth) override = 0;
|
||||
|
||||
void contentSizeUpdated() {
|
||||
auto oldHeight = height();
|
||||
resizeToWidth(width());
|
||||
emit heightUpdated();
|
||||
}
|
||||
|
||||
PeerData *peer() const {
|
||||
|
||||
Reference in New Issue
Block a user