Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable tooltips #213

Closed
mclarekin opened this issue Jan 25, 2017 · 6 comments
Closed

Disable tooltips #213

mclarekin opened this issue Jan 25, 2017 · 6 comments
Assignees
Milestone

Comments

@mclarekin
Copy link
Collaborator

Enhancement for V2,11

Disable tooltips in program settings.

@zebastian
Copy link
Collaborator

i will look into this for the next release...

@zebastian zebastian self-assigned this Feb 5, 2017
@buddhi1980 buddhi1980 added the GUI label Feb 6, 2017
@ghost ghost added this to the 2.11 milestone Feb 19, 2017
@zebastian
Copy link
Collaborator

hmm, i thought this would be a quick fix, but i have found no solution for this in the net.
This can be compiled into the code with QT_NO_TOOLTIP, but thats pretty much useless.
Also the tooltip event can be intercepted by each qwidget and not shown depending on user preference, but this seems too much work for little gain. Sadly there is no easy QApplication flag AFAIK.
I reschedule this for later, so we can look again...

@zebastian zebastian modified the milestones: 2.15, 2.11 Mar 10, 2017
@buddhi1980
Copy link
Owner

You are right. There is no easy solution for this.

buddhi1980 added a commit that referenced this issue Jul 10, 2019
Added coloring of material editor window
Added tooltips for gradient buttons
@buddhi1980
Copy link
Owner

Finally found solution. Added eventFilter for tooltips in qApplication

bool RenderWindow::eventFilter(QObject *obj, QEvent *event)
{

	if (event->type() == QEvent::ToolTip && !gPar->Get<bool>("display_tooltips"))
	{
		{
			return true;
		}
	}
	else
	{
		return QMainWindow::eventFilter(obj, event);
	}
}

@mclarekin
Copy link
Collaborator Author

mclarekin commented Jul 10, 2019 via email

@zebastian
Copy link
Collaborator

:D finally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants