Skip to content

Conversation

@hebasto
Copy link
Member

@hebasto hebasto commented Jan 14, 2019

This PR sets QComboBox::AdjustToContents instead of default QComboBox::AdjustToContentsOnFirstShow for wallet selectors.

Before (in master):
screenshot from 2019-01-14 20-47-22

After (with this PR):
screenshot from 2019-01-14 20-48-43

@promag
Copy link
Contributor

promag commented Jan 14, 2019

utACK ca91661, this was on my to do list.

@molxyz
Copy link

molxyz commented Jan 14, 2019

Is the color of this GUI also going to be changed to this dark color?

@hebasto
Copy link
Member Author

hebasto commented Jan 14, 2019

Is the color of this GUI also going to be changed to this dark color?

No. There are different Qt versions. System-wide Qt handles dark theme of my DE.

@molxyz
Copy link

molxyz commented Jan 14, 2019

@hebasto Ah cool, thank you, good to hear.

@fanquake fanquake added the GUI label Jan 14, 2019
@fanquake
Copy link
Member

tACK ca91661 on macOS 10.14.2 (qt 5.12.0)

Note that on macOS if the window is too small to fit the longest wallet name between "Transactions" and the edge of the screen, the wallet selector turns into ">>" and appears below the other tabs. i.e:
selector below tabs

However that section folds up when you mouse away 👍

Other screenshots of ca91661 usage:
long wallet name
selection
after selected before fold

@laanwj laanwj merged commit ca91661 into bitcoin:master Jan 21, 2019
laanwj added a commit that referenced this pull request Jan 21, 2019
ca91661 Fix wallet selector size adjustment (Hennadii Stepanov)

Pull request description:

  This PR sets `QComboBox::AdjustToContents` instead of default `QComboBox::AdjustToContentsOnFirstShow` for wallet selectors.

  Before (in master):
  ![screenshot from 2019-01-14 20-47-22](https://user-images.githubusercontent.com/32963518/51133771-83d00d80-183e-11e9-812c-3a1119fa766e.png)

  After (with this PR):
  ![screenshot from 2019-01-14 20-48-43](https://user-images.githubusercontent.com/32963518/51133788-90546600-183e-11e9-8394-eb62a998b90f.png)

Tree-SHA512: c23ac91905bb31aaa32f2fccc02b01f5707d8b094020fe6a75a9e099e78f9191670474920234a01c46480f67d3d311f44ff46f1f4202cd50a4a6d4d09a8342ce
@hebasto hebasto deleted the 20190114-wallet-selector-size-adjust branch January 21, 2019 17:05
@promag
Copy link
Contributor

promag commented May 30, 2019

Not sure if related but I'm having this:

Screenshot 2019-05-30 at 23 10 25
Screenshot 2019-05-30 at 23 10 31

It only shows full wallet name (path) if it's the current.

@hebasto
Copy link
Member Author

hebasto commented Jun 19, 2019

@promag

It only shows full wallet name (path) if it's the current.

Which OS? Which Qt version?

jasonbcox pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Nov 10, 2020
Summary:
> This PR sets QComboBox::AdjustToContents instead of default QComboBox::AdjustToContentsOnFirstShow for wallet selectors.

This is a backport of Core [[bitcoin/bitcoin#15167 | PR15167]]

Test Plan:
`ninja && src/qt/bitcoin-qt`

Create a new wallet with a very long name, and check that the name is not truncated in the dropdown selectors (in main window and in the console tab of the debug dialog)

Reviewers: #bitcoin_abc, Fabien, majcosta

Reviewed By: #bitcoin_abc, Fabien, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D8356
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request Aug 24, 2021
ca91661 Fix wallet selector size adjustment (Hennadii Stepanov)

Pull request description:

  This PR sets `QComboBox::AdjustToContents` instead of default `QComboBox::AdjustToContentsOnFirstShow` for wallet selectors.

  Before (in master):
  ![screenshot from 2019-01-14 20-47-22](https://user-images.githubusercontent.com/32963518/51133771-83d00d80-183e-11e9-812c-3a1119fa766e.png)

  After (with this PR):
  ![screenshot from 2019-01-14 20-48-43](https://user-images.githubusercontent.com/32963518/51133788-90546600-183e-11e9-8394-eb62a998b90f.png)

Tree-SHA512: c23ac91905bb31aaa32f2fccc02b01f5707d8b094020fe6a75a9e099e78f9191670474920234a01c46480f67d3d311f44ff46f1f4202cd50a4a6d4d09a8342ce
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Aug 24, 2021
ca91661 Fix wallet selector size adjustment (Hennadii Stepanov)

Pull request description:

  This PR sets `QComboBox::AdjustToContents` instead of default `QComboBox::AdjustToContentsOnFirstShow` for wallet selectors.

  Before (in master):
  ![screenshot from 2019-01-14 20-47-22](https://user-images.githubusercontent.com/32963518/51133771-83d00d80-183e-11e9-812c-3a1119fa766e.png)

  After (with this PR):
  ![screenshot from 2019-01-14 20-48-43](https://user-images.githubusercontent.com/32963518/51133788-90546600-183e-11e9-8394-eb62a998b90f.png)

Tree-SHA512: c23ac91905bb31aaa32f2fccc02b01f5707d8b094020fe6a75a9e099e78f9191670474920234a01c46480f67d3d311f44ff46f1f4202cd50a4a6d4d09a8342ce
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants