Re: [pgAdmin4] - Runtime compilation error

From: Dave Page <dave(dot)page(at)enterprisedb(dot)com>
To: Neel Patel <neel(dot)patel(at)enterprisedb(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: [pgAdmin4] - Runtime compilation error
Date: 2016-01-26 10:04:30
Message-ID: CA+OCxowX6acN_4xhUFZsxyqv6RPvLUTdj8BPUYX-cFpA=-Vk4Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Thanks - patch applied.

FYI, it should build at minimum with the Qt4 version that ships with CentOS 6.

On Tue, Jan 26, 2016 at 7:03 AM, Neel Patel <neel(dot)patel(at)enterprisedb(dot)com> wrote:
> Hi Dave,
>
> We are just compiling the new runtime source code in Linux and we are
> getting the below error during the compilation.
>
> TabWindow.cpp: In constructor ‘TabWindow::TabWindow(QWidget*)’:
> TabWindow.cpp:68:15: error: ‘class QTabBar’ has no member named
> ‘setAutoHide’
> tabBar()->setAutoHide(true);
> ^
>
> After debugging, we came to know that we have added "setAutoHide"
> functionality when QTabBar contains the less than 2 tabs.
> As per the Qt documentation, "setAutoHide" is supported from Qt 5.4 onwards.
> In Linux we are using Qt 5.2, in that "setAutoHide" is not supported so we
> are getting above error.
>
> Qt 5.2 Documentation for the reference.
> http://qt.apidoc.info/5.2.0/qtwidgets/qtabbar-members.html
>
> Qt 5.5 Documentation for the reference.
> http://doc.qt.io/qt-5/qtabbar-members.html
>
> Find attached patch file with the fix. We have tested in Linux and Mac.
> Please review it and let us know for any comments.
>
> Thanks,
> Neel Patel

--
Dave Page
VP, Chief Architect, Tools & Installers
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2016-01-26 10:12:08 pgAdmin website commit: Update frank_lupo's details per request.
Previous Message Dave Page 2016-01-26 10:03:53 pgAdmin 4 commit: Fix tab auto-hiding to work with Qt < 5.4.