X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fwidgets%2Fcolourbutton.cpp;h=06c82c30f496842cf4ff6754cdc29d351cb4dcf9;hp=1f503462ea2f839f0f39891aeb481fa6c830b4ae;hb=eb8269e3b5eebdd77e6a82d42bcfdfbc3f7613a9;hpb=2acdb232d6bb452cfdfaea3ef5218fb4da592329 diff --git a/pv/widgets/colourbutton.cpp b/pv/widgets/colourbutton.cpp index 1f503462..06c82c30 100644 --- a/pv/widgets/colourbutton.cpp +++ b/pv/widgets/colourbutton.cpp @@ -14,13 +14,12 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ #include "colourbutton.hpp" -#include +#include #include #include @@ -58,9 +57,7 @@ void ColourButton::set_colour(QColor colour) for (unsigned int r = 0; r < rows; r++) for (unsigned int c = 0; c < cols; c++) - if (popup_.well_array().cellBrush(r, c).color() == - colour) - { + if (popup_.well_array().cellBrush(r, c).color() == colour) { popup_.well_array().setSelected(r, c); popup_.well_array().setCurrent(r, c); return; @@ -92,9 +89,9 @@ void ColourButton::on_selected(int row, int col) selected(cur_colour_); } -void ColourButton::paintEvent(QPaintEvent *e) +void ColourButton::paintEvent(QPaintEvent *event) { - QPushButton::paintEvent(e); + QPushButton::paintEvent(event); QPainter p(this);